nishit1987 / jsonpath

Automatically exported from code.google.com/p/jsonpath
0 stars 0 forks source link

Member names containing dot fail #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Member names in pathes containing dot '.' should work, if it is enclosed
in single quotes, as in {{{$['a.b']}}}.

Original issue reported on code.google.com by stefan.g...@gmail.com on 19 Sep 2007 at 1:11

GoogleCodeExporter commented 9 years ago
Resolved with version 0.8.3

Original comment by stefan.g...@gmail.com on 19 Sep 2007 at 5:39

GoogleCodeExporter commented 9 years ago
Does not work for me neither in 0.8.1; nor in 0.9.1 (which are publicly 
available in maven repository).

This is the JSON file.

{"resultMap":{
    "accessPoint.uri":"https://xxx",
    "accessPoint.password":"yyy",
    "accessPoint.username":"zzz",
    "accessPoint.category.name":"URL"
}}

And this is the piece of code that ends on an exception.

this.url = JsonPath.read(json, "$.resultMap.'accessPoint.uri'");

The exception is:
Exception in thread "main" com.jayway.jsonpath.PathNotFoundException: Path 
''accessPoint' not found in the current context:

Original comment by petr.pan...@gmail.com on 11 Sep 2014 at 1:22

GoogleCodeExporter commented 9 years ago
ftrrrttrr

Original comment by ritesh.p...@gmail.com on 22 May 2015 at 4:00

GoogleCodeExporter commented 9 years ago
ddddddd

Original comment by ritesh.p...@gmail.com on 22 May 2015 at 4:01