开发者

How to parse JSON obtained from HttpClient connection?

开发者 https://www.devze.com 2023-02-19 05:16 出处:网络
I have successfully established a connection using Httpclient GET method.开发者_高级运维 Now I want to parse the data using JSON Parser. Please help me.Look at the org.json package in the Android SDK.

I have successfully established a connection using Httpclient GET method.开发者_高级运维 Now I want to parse the data using JSON Parser. Please help me.


Look at the org.json package in the Android SDK. It has useful classes like JSONObject and JSONArray that you can use to parse JSON responses.


Use the JSONObject class as Rahul said. Its quite good.

Read more about it here

General information about JSON: here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号