JSON Path Tester

JSON Input

Option 1: Copy-paste your JSON string hereSample
Option 2: Or Load your JSON file

JSON Path Expression

Result Full Screen
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.


1. Select the document node $.*
2. Select the 'employees' element $.employees
3. Select all 'employee' elements that are direct children of the 'employees' element. $.employees.employee
4. Select all 'id' elements regardless of their positions in the document. $.employees.employee['*'].id
5. Select the 'id' attributes of the 'employee' elements with their positions in the document. $.employees.employee[1].id
Sample URL

By clicking the "Save Online" button you agree to our terms and conditions.

JSONPath Tester

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.

JSON String Sample

{ 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 } ] } }

How Do I Use a JSONPath Tester?

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.