JsonPathFacade { public <T> T readObjectValue(String jsonPathExpression) { PlainJavaJsonProvider provider = new PlainJavaJsonProvider(); Configuration configuration = Configuration.builder().jsonProvider(provider).build(); JsonPath jsonPath = JsonPath.compile(jsonPathExpression); return jsonPath.read(jsonObject, configuration); } JsonPathFacade(String targetJson); String readStringValue(String jsonPathExpression); void writeValue(String jsonPathExpression, Object value); Object getJSON(); String getCurrentJson(); T readObjectValue(String jsonPathExpression);  }
@Test public void simpleObjectReadWorks() throws Exception { List arrayElements = new JsonPathFacade(SIMPLE_JSON).readObjectValue("$.children"); assertThat(arrayElements, is(aCollectionWithSize(2))); }