Closed GoogleCodeExporter closed 8 years ago
I think you need to escape the path:
assertEquals("value", path.get("'http://127.0.0.1:8080/key'")); // Notice the starting and trailing '
Original comment by johan.ha...@gmail.com
on 22 Aug 2012 at 5:02
Original comment by johan.ha...@gmail.com
on 24 Aug 2012 at 9:59
I think this is a valid bug, althoug the provided testcase has error.vI fixed
the Testcase (added a missingg ") and escaped the url. It is still failing:
@Test
public void testDotEscapingWithUrlKey() {
JsonPath path = new JsonPath("{ \"http://127.0.0.1:8080/key\" : \"value\" }");
assertEquals("value", path.get("'http://127.0.0.1:8080/key'"));
}
Original comment by martinEi...@gmail.com
on 29 Aug 2012 at 6:08
I tested this against the current master and it is fixed. I think it was
related to issue 195.
Original comment by martinEi...@gmail.com
on 29 Aug 2012 at 6:32
Alright great! Thanks for letting us know.
Original comment by johan.ha...@gmail.com
on 29 Aug 2012 at 6:58
Original issue reported on code.google.com by
JanNiko...@googlemail.com
on 22 Aug 2012 at 2:30