JSON Example
[
{"keyword": "A", "meta": {"hits": {"__PASS__": 0.0, "tag_1": 1}}},
{
"keyword": "B",
"meta": {"hits": {"__PASS__": 0.6, "tag_xx": 0.2, "tag_xxx": 0.2}},
},
{"keyword": "C", "meta": {"hits": {"__PASS__": 0}}},
]
Reproduce
- Use example above
- Try JSON Path
$[?(@.meta.hits['__PASS__'] = 0.0)].keyword, produces ['A', 'C']
- Try JSON Path
$[?(@.meta.hits['__PASS__'] = 0)].keyword, produces ['A', 'B', 'C']
JSON Example
[ {"keyword": "A", "meta": {"hits": {"__PASS__": 0.0, "tag_1": 1}}}, { "keyword": "B", "meta": {"hits": {"__PASS__": 0.6, "tag_xx": 0.2, "tag_xxx": 0.2}}, }, {"keyword": "C", "meta": {"hits": {"__PASS__": 0}}}, ]Reproduce
$[?(@.meta.hits['__PASS__'] = 0.0)].keyword, produces['A', 'C']$[?(@.meta.hits['__PASS__'] = 0)].keyword, produces['A', 'B', 'C']