nimo23
nimo23

Reputation: 5698

Wildcards and query semantics in JsonPointer with Jackson

Jackson provides JsonPointer. However, I want to do something like that what https://github.com/json-path/JsonPath can provide. How do I describe this in JsonPointer?:

$.store.book[?(@.price < 10)]

somethink like:

JsonPointer p = JsonPointer.compile("/store/book[????]");

Upvotes: 7

Views: 2028

Answers (1)

Saikat
Saikat

Reputation: 16930

JsonPath and JsonPointer serve different purposes. You won't be able to apply a pattern like above. You can read the Evaluation section to learn more about how JsonPointers work.

Upvotes: 0

Related Questions