Ive got a JSON string that jumped to a javascript object
{ "results":[ { "id":"460", "name":"Widget 1", "loc":"Shed" },{ "id":"461", "name":"Widget 2", "loc":"Kitchen" }] }
Is there any way to "query" this data in javascript so that I can search for the identifier 460 and return the name and loc (other than just scrolling the entire object)? I use jQuery and Prototypejs.
source share