Hi All,

I am doing Post operation to the CXF rest services through jquery ajax as
below
                url: url,
                success: success,
                type: "POST",
                data:postData,
                dataType: "json",
                contentType: "application/json",
                mimeType: "application/json",
                async: true

postData has json data like below

employeeVO[0][userName]
employeeVO[1][firstName]

But the json data sent in encoded by the firefox browser and the java
services is throwing error json data expecting '{ ' instead of encoded data
%5...
error below
 WARNWebApplicationExceptionMapper:58 - WebApplicationException has been
caught : org.codehaus.jettison.jso
n.JSONException: A JSONObject text must begin with '{' at character 1 of
employeeVO%5B0%5D%5BuserName%5D=6456454&employeeVO%5B1%
5D%5BfirstName%5D=6456

Any quick help please???   Thanks in Advance

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

Reply via email to