./prontouso.com
ALAT DEVELOPER

Penguji JSONPath

Tulis dan uji ekspresi kueri JSONPath (seperti $.store.book[*].author) pada data JSON Anda secara langsung dengan pratinjau hasil ekstraksi real-time.

Status alatBerjalan di browser Anda
Pratinjau

Hasil

2 match(es).

Cara kerja

  1. Masukkan data Anda

    Isi nilai yang diperlukan, tempel teks Anda, atau unggah file yang ingin diproses.

  2. Lihat hasil seketika

    Sebagian besar alat diperbarui secara langsung saat Anda mengetik; beberapa menggunakan satu tombol tindakan.

  3. Gunakan hasil Anda

    Salin, unduh, atau bagikan hasil yang dihasilkan — Anda selalu memiliki kendali penuh atas data Anda.

Privasi dan pemrosesan dataBerjalan secara lokal di browser Anda. Alat ini tidak mengunggah data Anda.

Apa itu Penguji JSONPath?

Experiment with JSONPath selectors and inspect matched values with their paths while working through an API response or fixture.

PAHAMI CARA KERJA ALAT

How to test JSONPath expressions

Supported selectors

The tester supports root $, dot properties, quoted bracket properties, array indexes, wildcards, recursive property search with $..name, and recursive wildcard search with $..*.

Reading matches

Results are returned as JSON objects containing the matched path and value. This makes it easier to see whether the expression matched the value you expected or a parent object around it.

Useful workflow

  • Start with a broad selector such as $.items[*] or $..price.
  • Narrow one segment at a time until the count matches your expectation.
  • Use bracket notation for property names that contain spaces or punctuation.

Testing notes

The matcher is a focused subset for quick selector checks. Confirm complex production selectors in the library or runtime that will execute them.

Pertanyaan yang Sering Diajukan (FAQ)

Does it support filters like [?(@.price > 10)]?

No. This version does not evaluate filter expressions, slices, unions, or script expressions.

How do I select every value under an object?

Use $..* to collect every descendant value, or $..propertyName to collect every property with a specific name.

Why is my bracket selector failing?

Bracket property selectors need quotes, such as $['user-name']. Unquoted brackets are treated as array indexes or wildcards.

Can it query invalid JSON?

No. The JSON must parse first. Syntax errors are shown before the JSONPath expression is evaluated.