TestersLesson 63Free preview
JSON Path Evaluator
This lesson is part of Web Developer Tools · All levels
Summary
JSONPath evaluator allows the retrieval of specific sections of JSON documents with concise expressions. You can select property, element array, whole value with a specific name, or filter object based on condition. This tool helps understand the API's response to the cluster before writing processing code.
Key points
- $ marks the root of the JSON document
- The point followed by the key name selects the property, e.g. $.user.name
- [0] Select an array element based on the index
- [*] pick all the elements, while.. searching recursively
- The filter [?(...)] selects the elements that meet the conditions
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.