Closed GoogleCodeExporter closed 9 years ago
Fixed in upcoming release. Note that you must use double escape characters.
@Test
public void issue_71() {
String json = "{\n"
+ " \"logs\": [\n"
+ " {\n"
+ " \"message\": \"it's here\",\n"
+ " \"id\": 2\n"
+ " }\n"
+ " ]\n"
+ "}";
List<String> result = JsonPath.read(json, "$.logs[?(@.message == 'it\\'s here')].message");
Assertions.assertThat(result).containsExactly("it's here");
}
Original comment by kalle.st...@gmail.com
on 12 Mar 2015 at 12:49
Original issue reported on code.google.com by
kalle.st...@gmail.com
on 11 Mar 2015 at 11:56