1 Reply Latest reply: Apr 9, 2008 3:18 AM by 800322 RSS

    looping through json object in a query string

    807601
      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.