JsonPathFacade { public String readStringValue(String jsonPathExpression) { Object data = readObjectValue(jsonPathExpression); return String.valueOf(data); } JsonPathFacade(String targetJson); String readStringValue(String jsonPathExpression); void writeValue(String jsonPathExpression, Object value); Object getJSON(); String getCurrentJson(); T readObjectValue(String jsonPathExpression);  }
@Test public void simpleStringReadWorks() throws Exception { String jsonPathExpression = "$.children[1].childProperty"; assertThat(new JsonPathFacade(SIMPLE_JSON).readStringValue(jsonPathExpression), is("propValue")); }