Reputation: 5698
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
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