我有一个标准的java http客户端。我在调用HTTP操作时收到JSON响应。
响应如下所示:
//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]
虽然内容类型是响应中的application / json,但我不确定如何处理这种JSON格式。
感谢任何帮助。
答案 0 :(得分:2)
检查JSON in Java。应该很容易使用。
答案 1 :(得分:0)
这实际上不是JSON,但是如果你从前面剥离//OK
那么它就是。
剥离字符然后通过JSON解析器运行它。有几个列在JSON homage上的图表之后。