JSON Path tester JSONPath expressions लिखने और live JSON data पर test करने देता है — matched results instantly दिखते हैं। JSONPath JSON का XPath है — deeply nested structures query, arrays filter, specific fields extract करें बिना code लिखे।
JSONPath Expressions Test करें
JSON paste करें, queries लिखें, results instantly देखें।
JSONPath Basics
| Expression | Meaning | Example |
|---|---|---|
| $ | Root object | $ (पूरा JSON) |
| $.property | Child property | $.name |
| $.parent.child | Nested property | $.address.city |
| $.array[0] | Array index | $.users[0] |
| $.array[*] | All elements | $.users[*].name |
| $..property | Deep scan | $..email (सभी emails) |
| $.array[?(@.age>25)] | Filter | 25 से बड़े users |
JSONPath API testing tools (Postman), Kubernetes, BI tools में use होता है। jq CLI shell scripting के लिए। दोनों JSON query करते हैं।
Common Query Examples
// Sample JSON
{
"store": {
"books": [
{ "title": "Clean Code", "price": 450, "category": "tech" },
{ "title": "Atomic Habits", "price": 350, "category": "self-help" }
]
}
}
| Query | Expression |
|---|---|
| All titles | $.store.books[*].title |
| First book | $.store.books[0] |
| Rs.500 से कम | $.store.books[?(@.price<500)] |
| Tech books | $.store.books[?(@.category=="tech")] |
| All prices | $..price |
API Debugging में JSONPath
- API response paste करें — Postman, curl, DevTools से
- Query लिखें — Specific data drill करें
- Structure verify करें — Fields exist और correct types हैं check करें
- Code में translate करें
// JSONPath: $.data.users[?(@.active==true)].email
// JavaScript
data.users.filter(u => u.active).map(u => u.email)
// Python
[u["email"] for u in data["users"] if u["active"]]JSONPath कहां Use होता है
| Tool | Use |
|---|---|
| Postman | Test assertions, variable extraction |
| Kubernetes | kubectl -o jsonpath |
| REST Assured | Java API test assertions |
| AWS Step Functions | Input/output processing |
How to Use the Tool (Step by Step)
- 1
JSON Paste करें
Query करने वाला JSON data input area में।
- 2
Expression लिखें
JSONPath expression जैसे $.store.books[*].title।
- 3
Results देखें
Matched results real-time दिखते हैं।
- 4
Copy करें
Expression code या config में use के लिए copy।
Frequently Asked Questions
JSONPath क्या है?+−
JSON data के लिए query language, XPath जैसा। Dot-notation expressions से nested structures traverse करें। $.users[0].name जैसे।
$ का क्या मतलब है?+−
JSON document का root। सभी expressions $ से start होते हैं।
Array filter कैसे करें?+−
Filter expressions: $.users[?(@.age>25)] — 25 से बड़े users return। @ current element है।
Postman में use कर सकते हैं?+−
हां। Postman JSONPath test assertions में use करता है। पहले यहां test करें, फिर Postman में copy।
क्या ये tester free और private है?+−
हां। Query evaluation browser में। JSON data server पर नहीं जाता।
JSONPath Expressions Test करें
JSON paste करें, queries लिखें, results instantly देखें।
JSON Path Tester खोलें ->Related Guides
JSON फॉर्मेटर गाइड
JSON क्या है, कैसे format करें, common errors कैसे fix करें — developers और beginners दोनों के लिए।
JSON Tree Viewer Guide
JSON expandable tree में देखें, keys search करें, paths copy करें।
JSON Schema Generator — Complete Guide (हिंदी)
JSON Schema generate करना, validate करना और APIs में integrate करना सीखें