Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

looping through json object in a query string

807601Apr 9 2008 — edited Apr 9 2008
Hi

I have a json object in my query string and would like to loop through it, do i convert it to an array, or a map, so that i can loop through it?

I get the object from the url which looks like this:
{"CREATEDBYNAME":"TEST_ADMIN","FIRSTNAME":"John","TYPEID":"1900000000"}

I would then like to loop through it so that i can make a string that would look like:
"CREATEDBYNAME" = "TEST_ADMIN" AND "FIRSTNAME" = "John" AND "TYPEID"="1900000000"

I want to use a loop because there can be up to 15 options in the json object. and the if statement would just not do.

Plz help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2008
Added on Apr 9 2008
1 comment
421 views