File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to iterate an JSON map object without keys?

 
Deepakkumar Devarajan
Ranch Hand
Posts: 54
Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

Is it possible to iterate an JSON map object without keys? I have an Json object like the one below


the keys size, color and material are dynamically generated . How to iterate the map by fetching it's keys dynamically?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use code blocks when you post code.

Also watch out for the trailing comma, IE hates that.

 
Deepakkumar Devarajan
Ranch Hand
Posts: 54
Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks For helping.... How do I further fetch the values using the keys fetched? I missed to the coding in code tag..

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepakkumar Devarajan wrote:How do I further fetch the values using the keys fetched?


Did you run the example I gave you? The answer is there.

Eric

 
Deepakkumar Devarajan
Ranch Hand
Posts: 54
Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Pascarello wrote:
Deepakkumar Devarajan wrote:How do I further fetch the values using the keys fetched?


Did you run the example I gave you? The answer is there.

Eric



Thanks Eric. I did not notice obj[key]. Thanks a ton for helping... this really helped me. :-)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic