how decode this JSON answer form server? - json

I have JSON response from server, but I don't how to decode it and read.
{"data":"hX8L^^\u0002#[ZUN\\r[\\A\\6V\u0017\fq\u0012\u0004P^U_\u0016\u0005\u0006\u0017\u0000'FWPM\u0003LZ\u0010gHsF\u000e\u0012UE\u0012\t\u000fM#:\u0003A~VKb\u0015\u001dO\u0014\u0012\u0006pQ\u0005\u0005\u0010\u000b\u0001\u001d/\u0000A\u0014ke\u0015Y\u0004l|#K&\t\u0017uqJ>`r\fBK)Yf\u0015ZO\u000bfG'MO\b_mob\n\u0004KyQO\tRkuYJcZ\u0016uBb|dt\u0012Xt\f\u0006H\u001cz\u00162\u0003T\u001eWJ4azw\u001dR\u00104WZ\u0001w\u0013\u0000lbS#!#\u00055#Q'X\u0005-N##\u0010\\+D\u0005\u0003\u0018h+JL..Dk\u0005\u000bre\r\u0013YK&]R7\u0010k\u0016e\u0013q\u0003\u0015\n\u0002\u0012p\u0002\u0016$&#...
is there any converter?
thx

Related

JMeter Groovy convert JSON response to string

I've been looking through various solutions for converting JSON responses to string, but I'm still getting something wrong.
I'm trying to read the response from a post request, convert it to a string and modify it (using groovy), then pass it on the next request. The problem seems to be in the groovy script, it's not reading in the response from the first HTTP request and I'm not sure how to fix that.

json request issue with newline (\n) in ios

I am using afnetworking for json request, and I am passing string like "hello
world". afnetworking json data converts it to "hello\\nworld". but php webservice getting it as "hello\nworld"(my json string). can any one give solution for it. please reply as soon as possible.
Thank you in advance.

Storing the parsed JSON values in CSV by using JMeter Bean shell or BSF post processor

I have a API returning json response. I need to parse the JSON array to get those data from it and store it in the CSV file. These things are need to be done as the part of the JMeter.
Thanks in advance
Maybe the following tutorial is applicable for you http://code.google.com/p/jmeter-plugins/wiki/FFWTutorials

Does OData4j request a response in JSON format or convert the response to JSON format? (Android)

I've been using the following code to create my android OData service consumer.
Services = ODataConsumer
.newBuilder("http://xxx.xxx.xxx.xxx:xxxxx/WCFDataServices.svc/")
.setFormatType(FormatType.JSON).build();
What I want to know is when the client makes a request through the Services consumer will the request make the server create a JSON formatted response or will the OData4j/consumer convert the response to JSON format.
Thanks in advance for the help. :)
It requests a JSON response from the server using the Accept request header. It does no conversion.
See: http://code.google.com/p/odata4j/source/browse/odata4j-jersey/src/main/java/org/odata4j/jersey/consumer/ODataJerseyClient.java#175
Hope that helps,
- john
Odata defalut format is ATOM. If you want you can change it to JSON, as you already doing.
"FormatType.JSON"
OData4j/consumer APIs are responsible to convert the response type whatever format you have defined.

Parsing JSON response in JAVA

I have a standard java http client. I am receiving a JSON response while invoking an HTTP operation.
The response looks like as below :
//OK[25,24,23,22,21,20,19,8,8,8,8,8,18,17,16,15,14,8,13,12,11,10,9,9,8,8,8,7,4,6,5,4,3,2,34,1,["[Ljava.lang.String;/2600011424","17501-20000-39010","1152963","Not Available","Open","2222","01/15/2012","0.00","1663.07","02/09/2012","02/15/2012","4446.36","2783.29","2038.71","02407.65","03/11/2012","486.76","07135.7900","0","01/26/2012","001122 AAA BBB CCC","1","Y","01/23/2012","E"],0,5]
Though the content type is application/json in the response, I am not sure on how to process this JSON format.
Any help is appreciated.
Check JSON in Java. Should be pretty easy to use.
That isn't actually JSON, but if you strip off the //OK from the front then it would be.
Strip through characters then run it through a JSON parser. Several are listed just after the diagrams on the JSON homage.