danielaparker / jsoncons

A C++, header-only library for constructing JSON and JSON-like data formats, with JSON Pointer, JSON Patch, JSON Schema, JSONPath, JMESPath, CSV, MessagePack, CBOR, BSON, UBJSON
https://danielaparker.github.io/jsoncons
Other
699 stars 158 forks source link

Update jsonpath_examples.cpp #454

Closed MonkeybreadSoftware closed 11 months ago

MonkeybreadSoftware commented 11 months ago

The original example returns empty result. If you use &&, the result works.

Not sure if the [][] syntax should work and the library is wrong:

"$.store.book[?(@.category == 'fiction')][?(@.price < 15)].title" vs. "$.store.book[?(@.category == 'fiction' && @.price < 15)].title"

or the example wasn't updated!?