If you loved CSS selectors, and were flabbergasted with the way jQuery selectors extended it, you'll be floored when you see JSON selectors.
Using the JSON selectors, you can directly access data in complex JSON objects. Whether you know the complete or partial path to the node you need, or even only the node name, it can directly access and fetch you data without you having to manually iterate over the entire tree. Visit http://jsonselect.org to get an overview and a demo.
JSON has been outdoing XML as the preferred data-exchange format because of its integration with Javascript and client-side code, and ease of parsing it within Javascript when compared to XML. JSON:select() adds an extra mile to the format and further reduces development time, even though it parses the entire tree under the covers and takes the same amount of processing time as parsing it by hand. But minimizing developer efforts is what most frameworks are for, aren't they?
No comments:
Post a Comment