Skip to main content
DevTools24

مختبر JSONPath

اختبار تعبيرات JSONPath مقابل بيانات JSON. الاستعلام عن الكائنات المتداخلة واستخراج قيم محددة.

JSONPath Syntax:
$ - Root object
.property - Child property
[n] - Array index
[-1] - Last element
[*] - All elements
[0:2] - Slice (start:end)

بنية JSONPath - التفاصيل التقنية

JSONPath مثل XPath لـ JSON. استخدم $ للجذر و .property للأبناء و [n] لفهرس المصفوفة و [*] لجميع العناصر و [start:end] للشرائح. مفيد لاستخراج البيانات من هياكل JSON المعقدة.

بديل سطر الأوامر

// JSONPath examples\n$.store.books[0].title\n$.store.books[*].author\n$..price\n$.store.books[-1]