/** * Applies this JsonPath to the provided json document. Note that the document must be identified as either a List or Map by the * {@link JsonProvider} * * @param jsonObject a container Object * @param configuration configuration to use * @return the root object matched by the given path */ public Object readRoot(Object rootObj, Object jsonObject, Configuration configuration) { configuration.setComputeRoot(true); try { return path.evaluate(rootObj, jsonObject, jsonObject, configuration).getRoot(); } catch (RuntimeException e) { // KR - support suppress exception throw e; } } }