23 lines
616 B
JSON
Raw Normal View History

2025-02-26 11:49:20 +08:00
[{
"description": "Multiple wildcards in an expression",
"given": {
"foo": [
{"bar": [{"kind": "basic"}, {"kind": "intermediate"}]},
{"bar": [{"kind": "advanced"}, {"kind": "expert"}]}
]
},
"cases": [
{
"name": "multi_wildcard_field",
"expression": "foo[*].bar[*].kind",
"result": [["basic", "intermediate"], ["advanced", "expert"]]
},
{
"name": "wildcard_with_index",
"expression": "foo[*].bar[0].kind",
"result": ["basic", "advanced"]
}
]
}]