-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
It was fixed for array here: #24
But still does not work, if a child is not an array:
json = <<-JSON
{
"store": {
"book": {
"category": "reference",
"author": "Nigel Rees",
"title": "Sayings of the Century",
"price": 8.95
}
}
}
JSON
pp JsonPath.new("$..book[?(@.price<10)]").on(json) # => []
# But expected to return the book
# But checking price directly works also
pp JsonPath.new("$..book.price[?(@<10)]").on(json) # => [8.95]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels