html69// dev utilities

JSON tool

JSONPath Tester

A JSONPath tester. Paste JSON, run a query, and copy the matching values. It all stays on your device.

Like the tool? Find a bug?Share with us

Tester

Paste JSON and a JSONPath. Matches stay on your device.

22 / 2,000
Supported files: .json
0 / 50,000
Matches will appear here.
Match paths will appear here.
import { JSONPath } from "jsonpath-plus";

const matches = JSONPath({ path, json: value });

Guide

How this JSONPath tester works

01

Start at $

$ is the whole document. .store or ['store'] picks a key. [0] and [-1] pick array items. Sample reads every book author.

02

Wildcards, slices, and ..

[*] is every child. [:2] is a slice. $..price walks the whole tree for that key. Filters like [?(@.price<10)] keep items that match.

03

Copy values or paths

Matches are a JSON array. Paths show where each value sat, like $.store.book[0].author. Next.js has no built-in JSONPath; the snippet uses jsonpath-plus on the server.

Use it

What queries well

API payloads, config files, and the bookstore sample. Dot keys, quoted keys, indexes, unions such as [0,1], and && / || filters. Script callbacks and regular expressions are not run here.

FAQ

Questions

Does this upload my JSON?

No. Parse, query, copy, and download run in this tab. There is no account and no API call.

What does $..price mean?

From the root, find every price key, nested or not. $.store.book[*].author stays on the book list. $.store.book[?(@.isbn)] keeps books that have an isbn.

Why is my query empty?

The JSON must parse, and the path must match. A typo in a key, a missing $, or a filter that compares a string to a number will return no rows instead of crashing.

Is there a size limit?

JSON is capped at 50,000 characters. The path is capped at 2,000 characters, and results stop at 500 matches so a huge dump cannot freeze the tab.