@Test(expected = SdkClientException.class) public void stringToJsonNode_InvalidJson_ThrowsException() throws JsonProcessingException { stringToJsonNode("Param", "{"); }
public static JsonNode stringToJsonNode(String paramName, String val) { if (val == null) { return null; } try { return MAPPER.readTree(val); } catch (IOException e) { throw new SdkClientException(paramName + " must be a valid JSON document", e); } }
JacksonUtils { public static JsonNode stringToJsonNode(String paramName, String val) { if (val == null) { return null; } try { return MAPPER.readTree(val); } catch (IOException e) { throw new SdkClientException(paramName + " must be a valid JSON document", e); } } }
JacksonUtils { public static JsonNode stringToJsonNode(String paramName, String val) { if (val == null) { return null; } try { return MAPPER.readTree(val); } catch (IOException e) { throw new SdkClientException(paramName + " must be a valid JSON document", e); } } private  JacksonUtils(); }
JacksonUtils { public static JsonNode stringToJsonNode(String paramName, String val) { if (val == null) { return null; } try { return MAPPER.readTree(val); } catch (IOException e) { throw new SdkClientException(paramName + " must be a valid JSON document", e); } } private  JacksonUtils(); static String jsonToString(JsonNode node); static JsonNode stringToJsonNode(String paramName, String val); static JsonNode objectToJsonNode(Object val); }
JacksonUtils { public static JsonNode stringToJsonNode(String paramName, String val) { if (val == null) { return null; } try { return MAPPER.readTree(val); } catch (IOException e) { throw new SdkClientException(paramName + " must be a valid JSON document", e); } } private  JacksonUtils(); static String jsonToString(JsonNode node); static JsonNode stringToJsonNode(String paramName, String val); static JsonNode objectToJsonNode(Object val);  }