Skip to content

Cannot get union operator [,] to work with alternate names #31

Description

@XSven

I need to extract a union of nodes from a JSON document. Go to Jayway JsonPath Evaluator and choose the Goessner example (the default) and the Jayway implementation (the default too) and apply

$.store.book[*]["category", "author"]

to the document. The output is roughly what I am expecting. If we choose the Goessner implementation the output is empty (false). This fits to the behaviour of JSON::Path. But the Goessner definition says the following about the [,] operator

Union operator in XPath results in a combination of node sets. JSONPath allows alternate names or array indices as a set.

Could you please provide a JSON::Path example that uses alternate names in [,]. Thx.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions