freestrings / jsonpath

JsonPath engine written in Rust. Webassembly and Javascript support too

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is support root node is array?

rustbomber opened this issue · comments

commented

like this, is support?

[
{},
{}
]

@akaylh

like this?

Input

[
{"a": 1},
{"a": 2}
]

Query
$[*].a

Output

[
  1,
  2
]

you can try here https://freestrings.github.io/jsonpath/