JSONPath | Usage |
---|---|
$ | the root object/element |
@ | the current object/element |
. or [] | child operator |
.. | recursive descent. JSONPath borrows this syntax from E4X. |
* | wildcard. All objects/elements regardless their names. |
[] | subscript operator. XPath uses it to iterate over element collections and for predicates. In Javascript and JSON it is the native array operator. |
?() | applies a filter (script) expression. |
() | script expression, using the underlying script engine. |
Title | |
Description | |
Tags |
By clicking the "Save Online" button you agree to our terms and conditions.
All code in shared files are supplied by users, and belongs to the poster.
All shared files are made public. No license is enforced.
Any code can be removed without warning (if it is deemed offensive, damaging or for any other reason).
fancytextconverter.com are not responsible or liable for any loss or damage of any kind during the usage of provided code.
This is an online tool that is used by developers and programmers to evaluate and test JSONPath. In another definition it is a tool which helps to test your expressions or queries against JSON data file and URL. It is used to validate and extract the matching piece of the JSON data against the input expression and its simple interface allows users to navigate the page easily so as to get the desired result.
{ employees: { employee: [ { id: 1 firstName: Tom lastName: Cruise photo: https://pbs.twimg.com/profile_images/735509975649378305/B81JwLT7.jpg } { id: 2 firstName: Maria lastName: Sharapova photo: https://pbs.twimg.com/profile_images/786423002820784128/cjLHfMMJ_400x400.jpg } { id: 3 firstName: James lastName: Bond photo: https://pbs.twimg.com/profile_images/664886718559076352/M00cOLrh.jpg } ] } }
Input your JSON String in the appropriate box Click on TEST JSONPath and watch your results being displayed in the opposite box. OR Click on Load URL input your URL and test your JSONPath.