I have this url : http://shops.alpha-trend.com/mobileapp/productinfo.php?productId=4363&function=GetProductInfo&show=yes. when i test this url in browser it contains json array in which product ,image and description and many other attributes are present. How i this parse this json in java to display product,image and description.Pleas help me through proper code.Any help is highly appreciated
Asked
Active
Viewed 233 times
1 Answers
0
There are several examples of doing this available, a quick search turned up two that look good:
This answer looks pretty much complete but is missing the HttpClient step, which you can find an example implementation in the next answer:

Community
- 1
- 1

Abdullah Jibaly
- 53,220
- 42
- 124
- 197
-
[{"0":"4363","record_id":"4363","1":"54621681","shop_id":"54621681","2":"25","category_id":"25","3":"","category1":"","4":"Dress 10012","product":"Dress 10012","5":"5000","price":"5000","6":"My Description\r\nMy Description\r\nMy Description\r\nMy Description","desc":"My Description\r\nMy Description\r\nMy Description\r\nMy Description","7":"http:\/\/www.shoppingmall.pk\/images\/menuimages\/54621681\/4363","products_image":"http:\/\/www.shoppingmall.pk\/images\/menuimages\/54621681\/4363","8":"1","status":"1","9":null,"external_link":null}], In this json data i don;t know which is main node? – rameesha Oct 24 '12 at 19:17
-
The above json data is present in this url:http://shops.alpha-trend.com/mobileapp/productinfo.php?productId=4363&function=GetProductInfo&show=yes – rameesha Oct 24 '12 at 19:18
-
the url u r given me contain node like earthquake ,please tell me in my json data ,which node i consider main node – rameesha Oct 24 '12 at 19:20