My problem got resolved.
@Sergey 

>Can Jackson decode it ? 
Jackson will not be decoding the value automatically.

>Should the JSON data come in the decoded form, given that it goes in the
message body ? 

Yes that was the root cause of the problem. following solution worked:
in the ajax call instead of  
data:postData, 

changed to 
 data: JSON.stringify(postData),

And the problem got resolved,the json data was not getting encoded now.

I think ideally javascript object created in the json format needs to be
converted into Json String.

JSON.stringify(obj) — converts an JavaScript object to a JSON string

I referred this link http://www.sitepoint.com/javascript-json-serialization/ 
 for Cross-browser JSON Serialization in JavaScript
it says 
There are two JSON methods in JavaScript:

    JSON.stringify(obj) — converts an JavaScript object to a JSON string
    JSON.parse(str) — converts a JSON string back to a JavaScript object

Thx
 

--
View this message in context: 
http://cxf.547215.n5.nabble.com/JSON-data-posted-to-CXF-rest-service-by-Ajax-is-throwing-encoding-issue-by-the-java-services-tp5150845p5151594.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to