Umer Hassam
Umer Hassam

Reputation: 1330

How to parse JSON obtained from HttpClient connection?

I have successfully established a connection using Httpclient GET method. Now I want to parse the data using JSON Parser. Please help me.

Upvotes: 1

Views: 3394

Answers (2)

Aman Aalam
Aman Aalam

Reputation: 11251

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

Read more about it here

General information about JSON: here

Upvotes: 0

Rahul
Rahul

Reputation: 21134

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.

Upvotes: 4

Related Questions