Formats
JSON Path Query
Query JSON data using JSONPath expressions.
How to use it
- Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type JSON Path Query and press Return.
- Paste or type your text into Input.
- Adjust the Options on the right if you need to. The defaults are listed below.
- Press Query, or ⌘↵.
- Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.
Options
| Option | Values | Default |
|---|---|---|
| JSONPath ExpressionJSONPath expression (e.g., $.key, $[0], $.items[*].name) | Text (e.g. $.store.books[0].title) | $ |
| Pretty print outputFormat output JSON with indentation | On or off | On |
| Extract primitive valuesExtract raw values for strings/numbers instead of JSON | On or off | Off |
Example
Real output from Devly, with the default options.
Input
{"name":"Devly","version":"2.3.0","tools":65,"offline":true,"price":"$4.99 once","categories":["Encoding","Hashing","Formats","Web Dev","Text","Dev Utils","Graphics"]}[ "Encoding", "Hashing", "Formats", "Web Dev", "Text", "Dev Utils", "Graphics" ]
From Terminal
With the free command-line tool installed:
Terminal
devly jsonpath --path input.txt # or pipe text in pbpaste | devly jsonpath
Quick Switch also finds it by: json, path, query, extract, jq, jsonpath, filter, selector.
More Formats tools
JSON FormatterFormat, validate, and minify JSON with syntax highlightingJSON ↔ YAMLConvert between JSON and YAML formatsYAML FormatterFormat, validate, and beautify YAML documentsXML FormatterFormat, validate, and beautify XML documentsXML ↔ JSONConvert between XML and JSON formatsCSV → JSONConvert CSV data to JSON format