How to use the jsonpath/jsonpath.min.paths function in jsonpath

To help you get started, we’ve selected a few jsonpath examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JeanBaptisteWATENBERG / react-jsonpath-editor / src / components / JsonPathPreviewer.js View on Github external
evalJsonPath(json, jsonPath) {
        try {
            return jp.paths(json, jsonPath);
        } catch(e) {
            return [];
        }
    }

jsonpath

Query JavaScript objects with JSONPath expressions. Robust / safe JSONPath engine for Node.js.

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis