Hi, If you test it with http://jsonpath.com/ it's ok
But if you test it with https://jsonpath.curiousconcept.com/ and JSONPath 0.3.4 implementation it's failed (JSONPath Error: Unable to parse token state,city in expression: .[state,city].). But with JSONPath 0.8.3 Antonio 2016-11-02 21:14 GMT+01:00 Philippe Mouawad <[email protected]>: > For tracking: > https://bz.apache.org/bugzilla/show_bug.cgi?id=60334 > > On Wed, Nov 2, 2016 at 9:03 PM, Philippe Mouawad < > [email protected] > > wrote: > > > Hello, > > I noticed today what seems to be a bug. > > > > Using JSON PATH : > > $.[state,city] > > > > It fails with: > > com.jayway.jsonpath.InvalidPathException: Could not parse token starting > > at position 2. Expected ?, ', 0-9, * > > > > I opened a bug for it: > > > > - https://github.com/jayway/JsonPath/issues/278 > > > > > > Do you confirm this is a correct expression as per > > http://goessner.net/articles/JsonPath/: > > > > [,] Union operator in XPath results in a combination of node sets. > > JSONPath allows alternate names or array indices as a set. > > > > Thanks > > > > Regards > > > > Philippe M. > > > > > > > -- > Cordialement. > Philippe Mouawad. >
