I am working on a spring mvc project. When i try to post a json data with rest client (Chrome's) it returns 201 Http status but when i post json data with ajax function it return this:
Caused by: org.codehaus.jackson.JsonParseException: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens
why it will be? each ones request headers and request body are same.