jsonpath icon indicating copy to clipboard operation
jsonpath copied to clipboard

Query and manipulate JavaScript objects with JSONPath expressions. Robust JSONPath engine for Node.js.

Results 102 jsonpath issues
Sort by recently updated
recently updated
newest added

I want to do something like this, but I get an error when I use `~`. Will `~` be supported? ```javascript jp.apply(someJson, '$..properties', snakecase) ```

jp.apply gives "Type error: Promise resolver undefined jp.apply callback function throws error when post request is done in callback function. //example jp.apply(jsonobject, path, (value) =>{ http.post(url...,value).then(return x) .catch(return y) }...

I tried the first example on repl.it: https://repl.it/repls/VioletredSnappySpool ``` var cities = [ { name: "London", "population": 8615246 }, { name: "Berlin", "population": 3517424 }, { name: "Madrid", "population": 3165235...

![image](https://user-images.githubusercontent.com/15151389/97839316-ee588300-1d1c-11eb-867f-fdbf790d7f15.png) because this version is too old, my project in the Security Scan is determined as overdue

Lodash is more widely used these days so it deduplicates more easily.

For example: ``` expect(jsonpath.isMatch('$.given[*].first', '$.given[2].first')).to.be.true; expect(jsonpath.isMatch('$.given[*].first', '$.given[0].second')).to.be.false; ``` Meaning I am trying to know if a specific "instance" of a path, matches the given JSONPath.

I have json like this: ``` { "app_version":"APP-VERSION-1.3.1d", "version":"VERSION-2.3.5", "device_id":"3129824", "receive_time":1598973254602 [...] } ``` and I would like to extract two fields: "version" and "app_version". I tried with expressions like:...

See Pull Request #142 for a potential (less than optimal) fix. The grammer as it is defined will encounter the ')]' in the single-quotes and use this as the end...

For a snippet such as this: `"some.property": { "value": true, "type": "boolean", "original": "enabled" }` I want to address the "some.property" element with an expression such as this: `result =...

Hi, Trying to filter JSON like this: $..Person[?(@.-objectId=='per11282a')] This doesn't work, but this does: $..Person[?(@.FirstName=='HILLARY')] and returns: [ { "-objectId": "per11282a", "FirstName": "HILLARY", "FullName": { "Text": { "-language": "en", "#text":...