Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下 JSON:
{“价值”:{“激活”:假}}
我希望 JSONPath 值返回为 true,但在应用过滤器时如下所示:
$.value.?(@.activate==false)
我得到一个无效的结果。
JSONPath 有什么问题吗?
过滤器查询的语法需要括号。
$.value[?(@.activate==false)]