I need to find a value based on another value of an object
json = {[{ID:"1",city:"Atlanta"},{ID:"2",city:"New York"}]}
etc.
I need to find the value of the city where ID is x. Is there a way to do this without using loops?
More: I have to create a json object looping through the document, then send this json to the web service, which returns me another set of json to fill the fields.
source share