JSON Path Tester

JSON Input

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

JSON Path Expression



Close
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.

JSONPath TEST CASES

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

Copyright © CodeBeautify 2021 | v9.3

Sample URL
Title
Description
Tags

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

Save Functionality Temporarily Disabled

Important Notice: The save functionality has been temporarily disabled while we implement enhanced NSFW (Not Safe For Work) content prevention measures.

We are currently working on improving our content filtering system to better protect our users from inappropriate content. During this development period, the save feature is unavailable.

What you can do:
  • Use the Download feature to save your content locally
  • Copy your content to clipboard for temporary storage
  • Check back soon for the updated save functionality

We apologize for any inconvenience and appreciate your patience as we enhance our platform's safety features.