@Test public void jsonToString_NonNullNode_ReturnsJson() throws IOException { String json = "{\"foo\": \"bar\"}"; assertJsonEquals(json, jsonToString(MAPPER.readTree(json))); }
public static String jsonToString(JsonNode node) { try { return node == null ? null : MAPPER.writeValueAsString(node); } catch (JsonProcessingException e) { throw new SdkClientException("Could not serialize JSON", e); } }
JacksonUtils { public static String jsonToString(JsonNode node) { try { return node == null ? null : MAPPER.writeValueAsString(node); } catch (JsonProcessingException e) { throw new SdkClientException("Could not serialize JSON", e); } } }
JacksonUtils { public static String jsonToString(JsonNode node) { try { return node == null ? null : MAPPER.writeValueAsString(node); } catch (JsonProcessingException e) { throw new SdkClientException("Could not serialize JSON", e); } } private  JacksonUtils(); }
JacksonUtils { public static String jsonToString(JsonNode node) { try { return node == null ? null : MAPPER.writeValueAsString(node); } catch (JsonProcessingException e) { throw new SdkClientException("Could not serialize JSON", e); } } private  JacksonUtils(); static String jsonToString(JsonNode node); static JsonNode stringToJsonNode(String paramName, String val); static JsonNode objectToJsonNode(Object val); }
JacksonUtils { public static String jsonToString(JsonNode node) { try { return node == null ? null : MAPPER.writeValueAsString(node); } catch (JsonProcessingException e) { throw new SdkClientException("Could not serialize JSON", e); } } private  JacksonUtils(); static String jsonToString(JsonNode node); static JsonNode stringToJsonNode(String paramName, String val); static JsonNode objectToJsonNode(Object val);  }