Published: Feb 13, 2016 · Tags: Dev JSON XPath
If your familiar with XML files, you’ve probably heard of/used XPath to select nodes from a XML document without implementing a custom parser. Did you know there was a similar tool for JSON, called JSONPath? This post shows how to get you started with JSONPath.
To test your queries, an online JSONPath evaluator is always a convenient tool. I find jsonpath.com to be the best. You can paste your JSON content and your JSONPath expression and it will immediately show you the matching content.
Edit: link is dead
There is an interesting alternative to JSONPath: json:select(), CSS-like selectors for JSON. I never took the time to play with it but it could be worth a shot.