Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Android
Its come from upc code llink
 

please help me its urgent
I want to use only product name , price and store name
 

 
{"0":{"productname":"UK Flag Cover For iPhone 4 / 4S - Unique iPhone 4S Phone Case","imageurl":"http://ecx.images-amazon.com/images/I/51RRBmsEKcL._SL160_.jpg","producturl":"http://www.searchupc.com/rd.aspx?u=d%2bKvXQ%2fFIfa95xJ38QYLyaufs%2fTgF0eohC5P5DKUSWnrVZXszogyd5CZJYI0lilV30XSbSodUXU5KqyCHXGdEt%2bVmdGj9CvS2djXvDmPAMdHn11THYzzgmlwNfIe7CfMlEKvqWKBk4WGuaFy6dk5VcIX5q4WE6c%2fzYadPmzYeXNRKse9oj7Rbq1ZGTP2Iyc7U7out%2fRUXFZicF1Z6jOBGXqfTHhViL8NthunsdQ6DVk%3d","price":"19.99","currency":"usd","saleprice":"","storename":"amazon.com"},"1":{"productname":"AceCamp Emergency Wilderness Kit I [Free Shipping US, Canada]","imageurl":"http://ecx.images-amazon.com/images/I/41T3ZBlBZNL._SL160_.jpg","producturl":"http://www.searchupc.com/rd.aspx?u=d%2bKvXQ%2fFIfa95xJ38QYLyasA2tiKTuODJDa5ycky1VINmthebvJVLJ93QKtFzi0TtRTt1r%2bFNLH4F0BI0I4CJGK84HF%2fAjTR7XJgErgcsj1o%2fY9It3tQOrMK8mfpARcWMZ0mAqRy3NKO7Ynj9Y92vowSDG3ipnoXaf4nurPHczBiR9pDttGaqH3N2GVRRrrFqFO7Gfe4gNQPQDIh%2bNwCnvqGMN4wgKDvYOt9NPfUUP%2b%2fAKBzhILJRV%2fE%2f9nu4UGG%2be3pl0vFWmNHeivwKH9srw%3d%3d","price":"39.99","currency":"usd","saleprice":"","storename":"amazon.com"},"2":{"productname":"AceCamp Emergency Wilderness Kit II [Free Shipping US, Canada]","imageurl":"http://ecx.images-amazon.com/images/I/51iJmlUhkoL._SL160_.jpg","producturl":"http://www.searchupc.com/rd.aspx?u=d%2bKvXQ%2fFIfa95xJ38QYLyasA2tiKTuODJDa5ycky1VINmthebvJVLJ93QKtFzi0TtRTt1r%2bFNLH4F0BI0I4CJH%2bSXuFgKGrOWYw7yalphSgB1TG9yAo0VS9CNhVXMgVlBTpd7KOtramXMCqvqo6asKtJ5T%2bfjSaoQ2HIMGzcGXlUvxA4ClsntG2%2b7Gdj3hEXbPtkdxqtA0eZgz2YtKj0CZArpVBwGYeDQ0DHoC76bouN3NsEc2znPF1cpBuKvCtFuGK8brzV6DSwNaM%2bjvb7eQ%3d%3d","price":"49.99","currency":"usd","saleprice":"","storename":"amazon.com"},"3":{"productname":"Waterproof Ultra Dry Sack (4 Packs Set) [Free Shipping US, Canada]","imageurl":"http://ecx.images-amazon.com/images/I/41s4jTd8wZL._SL160_.jpg","producturl":"http://www.searchupc.com/rd.aspx?u=d%2bKvXQ%2fFIfa95xJ38QYLyVa9b8%2fCVMfOUk7HwaA3FGyrXxT1dMSAOqT%2bMkN5AcDOO%2baaLs63L0CZO7OFWNimYWQP3wsM11M2XuJ26wpstkx8T0Td%2ftudSTtGZxBF%2b%2fu1O54qXv7BVLP7YqY6PJ%2bd%2bkJyq8fHFddjzGG5XxjPGguiGir4v0dPto51r6cd6iImVDRXZAx7AiN9A1IRCdnooAfgmvewVcEtLa0Rk4%2bwYtCP9GwlmsMtCJsrvjo262Mq","price":"39.95","currency":"usd","saleprice":"","storename":"amazon.com"}}
Posted 7-Oct-12 9:40am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Android, android, but what context? Browser, java, MonoDroid?
Java: http://www.vogella.com/articles/AndroidJSON/article.html[^]
Monodroid: according to some posts you can compile fastJson for monodroid
Browser: Depends on the browser. See support list: http://caniuse.com/json[^]
  Permalink  
Comments
Kenneth Haugland at 7-Oct-12 15:07pm
   
:laugh: for a second I thought you'd written a poem :-)
Zoltán Zörgő at 7-Oct-12 15:13pm
   
:)
AndroidVivek at 8-Oct-12 1:36am
   
I don't have much knowledge about json thats why asked and I see some example where there is Array for json but in this json i didn't have any array..so help me if you can...
Zoltán Zörgő at 8-Oct-12 2:02am
   
Well, than read something about json first: http://www.w3schools.com/json/default.asp, http://en.wikipedia.org/wiki/JSON
AndroidVivek at 8-Oct-12 5:40am
   
ok fine thanks
Zoltán Zörgő at 8-Oct-12 7:12am
   
You can use an online json parser to check it: http://json.parser.online.fr/ . I have checked your code, it is ok.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

use this link
 
http://stackoverflow.com/questions/8294062/android-json-object[^]
 

SONObject jData = new JSONObject(data);
JSONObject response = jData.getJSONObject("response");
 
boolean status = response.getBoolean("status");
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 7,740
1 DamithSL 5,769
2 Sergey Alexandrovich Kryukov 5,424
3 Maciej Los 5,076
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100