public static Object toJSONAware(Object content) throws JsonProcessingException { if (content instanceof List) { return new JSONArray(toJsonString(content)); } else if (content instanceof Map) { return new JSONObject(toJsonString(content)); } else { return content; } }
public static Object toJSONAware(Object content) throws JsonProcessingException { if (content instanceof List) { return new JSONArray(toJsonString(content)); } else if (content instanceof Map) { return new JSONObject(toJsonString(content)); } else { return content; } }
private String json(String jsonPath) { try { return toJsonString(verifying.json(jsonPath)); } catch (IOException e) { throw new RuntimeException(e); } } }
private String json(String jsonPath) { try { return toJsonString(verifying.json(jsonPath)); } catch (IOException e) { throw new RuntimeException(e); } } }