Reputation: 2995
Is there a JSON query class or jQuery plugin that I can use to more easily query larger JSON objects to return smaller sub-sets?
Upvotes: 1
Views: 313
Reputation: 422
The power of JavaScript is that you can pass 'smaller pieces' of the whole JavaScript object like so:
doSomething(response['objectA']['subB']);
Against a data structure like so:
{ "objectA" : { "subA" : 0, "subB" : 42 } }
The function receives the value of 42.
Upvotes: 0
Reputation: 1440
I'm using jsonSelect, once you learn how to do the queries it can really simplify things
Upvotes: 3