multiwildcard.json 616 B

12345678910111213141516171819202122
  1. [{
  2. "description": "Multiple wildcards in an expression",
  3. "given": {
  4. "foo": [
  5. {"bar": [{"kind": "basic"}, {"kind": "intermediate"}]},
  6. {"bar": [{"kind": "advanced"}, {"kind": "expert"}]}
  7. ]
  8. },
  9. "cases": [
  10. {
  11. "name": "multi_wildcard_field",
  12. "expression": "foo[*].bar[*].kind",
  13. "result": [["basic", "intermediate"], ["advanced", "expert"]]
  14. },
  15. {
  16. "name": "wildcard_with_index",
  17. "expression": "foo[*].bar[0].kind",
  18. "result": ["basic", "advanced"]
  19. }
  20. ]
  21. }]