jsonpath
jsonpath copied to clipboard
Ruby implementation of http://goessner.net/articles/JsonPath/
Fixes https://github.com/joshbuddy/jsonpath/issues/151 Added a check for the situation where `!` is the operator, and there is no operand. This allows us to use a JSONPath like `$[?(!@['pull_request'])]` or `$[?([email protected]_request)]` where...
Hi everyone! Checking the [README](https://github.com/joshbuddy/jsonpath/blob/master/README.md?plain=1#L169-L180) I found this interesting option  However, when I tested it in my project, it didn't work as expected  Looking over the implementation, I...
JSON default allows 100 level deep parsing. If you want to go beyond 100 level we need to parse max_nesting as false.
**Sample JSON:** Response from Github when getting a list of all issues The response contains two objects, one with a `pull_request` property and the other doesn't have a `pull_request` property....
@Skarlso Hello, thank you for this great gem! I *think* this is a bug. I took a crack at fixing this, but wasn't able to figure out exactly where I...
``` JsonPath.new("$..[?(@.price == 8.95 || @.price == 8.99)].title").on(json) => ["Sayings of the Century", "Moby Dick", "Sayings of the Century", "Moby Dick"] JsonPath.new("$..[?(@['price'] == 8.95 || @['price'] == 8.99)].title").on(json) Traceback (most...
I work with JSON data wrapped in classes which behave like Hash and Array, which respond to #to_hash / #to_ary to support implicit conversion (as described in https://docs.ruby-lang.org/en/master/doc/implicit_conversion_rdoc.html ) this...
When a compound query evaluates down to the expression true && false && true, the result is true. It should be false. Example: ``` $ cat data.json { "data": [...
can i get list of jsonpath from a json use it? maybe something like https://www.convertjson.com/json-path-list.htm