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.
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
[,]operatorCould you please provide a JSON::Path example that uses alternate names in
[,]. Thx.