looping through json object in a query string
807601Apr 9 2008 — edited Apr 9 2008Hi
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.