use of json.JSONObject in project JsonPath by json-path.
the class TapestryJsonProviderTest method an_object_can_be_read.
@Test
public void an_object_can_be_read() {
JSONObject book = using(TAPESTRY_JSON_CONFIGURATION).parse(JSON_DOCUMENT).read("$.store.book[0]");
assertThat(book.get("author").toString()).isEqualTo("Nigel Rees");
}
Aggregations