Closed GoogleCodeExporter closed 9 years ago
never mind, found a solution...
you can do this rootkey.[sub.key]
/Jesper
Original comment by jeppe.bl...@gmail.com
on 20 Feb 2014 at 2:56
You must use bracket notation to target this property:
String json = "{\"rootkey\":{\"sub.key\":\"value\"}}";
assertThat(JsonPath.read(json, "rootkey['sub.key']")).isEqualTo("value");
Original comment by kalle.st...@gmail.com
on 4 Aug 2014 at 10:20
Original issue reported on code.google.com by
jeppe.bl...@gmail.com
on 20 Feb 2014 at 2:38