>Jackson 提供了 JsonPointer。但是,我想做一些 https://github.com/json-path/JsonPath 可以提供的东西。我如何在 JsonPointer 中描述这一点?
$.store.book[?(@.price < 10)]
有人认为:
JsonPointer p = JsonPointer.compile("/store/book[????]");
JsonPath 和 JsonPointer 有不同的用途。您将无法应用上述模式。您可以阅读评估部分,了解有关 JsonPointer 工作原理的更多信息。