JSON

ทดสอบ JSONPath

ทดสอบนิพจน์ JSONPath กับข้อมูล JSON จริง — ดูตัวอย่างค่าที่พบและเส้นทางของค่าเหล่านั้นทันที

$ — ราก · .key / ['key'] — พร็อพเพอร์ตี้ · .. — ค้นหาแบบเรียกซ้ำ · [*] — ทุกอิลิเมนต์ · [0,1] — ดัชนี · [0:2] — สไลซ์ · [?(@.price<10)] — ตัวกรอง

คำถามที่พบบ่อย

What is JSONPath?

A query language for pulling values out of JSON by path — conceptually the same idea as XPath for XML, just with different syntax. $ is the document root, .key accesses a property, and [*] matches every element in an array or object.

What is the difference between .. and a plain .key?

.key only looks for a property at the current nesting level, while .. (recursive descent) searches for it at any depth in the document. For example, $..price matches every price field no matter how deeply nested it is.

Is my JSON data uploaded to a server?

No, all JSON parsing and JSONPath evaluation happens locally in your browser via JavaScript. Nothing is sent anywhere.