Penguji JSONPath
Tulis dan uji ekspresi kueri JSONPath (seperti $.store.book[*].author) pada data JSON Anda secara langsung dengan pratinjau hasil ekstraksi real-time.
Hasil
2 match(es).
Cara kerja
Masukkan data Anda
Isi nilai yang diperlukan, tempel teks Anda, atau unggah file yang ingin diproses.
Lihat hasil seketika
Sebagian besar alat diperbarui secara langsung saat Anda mengetik; beberapa menggunakan satu tombol tindakan.
Gunakan hasil Anda
Salin, unduh, atau bagikan hasil yang dihasilkan — Anda selalu memiliki kendali penuh atas 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.
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.
Alat Terkait
- TersediaLokal
Generator UUID / GUID Acak (Versi 4)
Hasilkan UUID v4 (Universally Unique Identifier) acak berkekuatan kriptografis secara massal.
- TersediaLokal
Pemformat, Validator & Minifier JSON / YAML / XML
Format, rapikan, validasi sintaks, atau kompres teks JSON, YAML, dan XML secara instan.
- TersediaLokal
Generator & Pemindai Kode QR Kustom
Buat kode QR kustom untuk URL, teks, WiFi, atau kontak vCard, dan pindai kode QR.
- TersediaLokal
Base64 Encoder & Decoder
Konversi teks atau tệp ke format string Base64 dan decode kembali secara instan.
- TersediaLokal
URL Encoder & Decoder
Enkripsi atau dekripsi teks dan URL ke format persen (percent-encoding) standar RFC 3986.
- TersediaLokal
Pengonversi Waktu Timestamp Unix
Konversi waktu epoch Unix (detik/milidetik) ke tanggal manusia dan ISO 8601.
- TersediaLokal
Pengonversi Entitas HTML
Encode dan decode karakter khusus HTML dan entitas numerik.
- TersediaLokal
Penguji Regular Expression (Regex)
Uji dan debug pola regex JavaScript secara langsung dengan penyorotan.
- TersediaLokal
Pendekode Token JWT
Dekode dan periksa header dan payload JSON Web Token secara aman.
- TersediaLokal
Asisten Cron Expression
Buat, analisis, dan jelaskan jadwal cron expression secara visual.