You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Philippe Mouawad <ph...@gmail.com> on 2016/11/02 20:03:29 UTC
JSON Extractor issue with Union operator
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.
Re: JSON Extractor issue with Union operator
Posted by sebb <se...@gmail.com>.
On 2 November 2016 at 20:03, Philippe Mouawad
<ph...@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/:
Looks OK to me.
> [,] 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.
Re: JSON Extractor issue with Union operator
Posted by Antonio Gomes Rodrigues <ra...@gmail.com>.
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 <ph...@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.
>
Re: JSON Extractor issue with Union operator
Posted by Philippe Mouawad <ph...@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.