jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gomes Rodrigues <ra0...@gmail.com>
Subject Re: JSON Extractor issue with Union operator
Date Wed, 02 Nov 2016 20:27:39 GMT
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 <philippe.mouawad@gmail.com>:

> For tracking:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=60334
>
> On Wed, Nov 2, 2016 at 9:03 PM, Philippe Mouawad <
> philippe.mouawad@gmail.com
> > 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message