Skip to content

weijunyu/vscode-json-path

Repository files navigation

Use JSONPath expressions to extract and filter data from JSON objects.

Check out https://github.com/stedolan/jq/wiki/For-JSONPath-users for a comparison between JSONPath and jq.

Features

Two commands are available through the command palette.

With a .json file open, type jsonpath to bring up the commands, key in your JSON path, then press Enter to view filter results.

Commands

jsonPath: Extract JSON data

Filter JSON data.

jsonPath: Extract JSON data with their paths

Filter JSON data and display the path to filtered data.

demo

Dependencies

  • JSONPath library from dchester: Query and manipulate JavaScript objects with JSONPath expressions. Robust JSONPath engine for Node.js.