public String stringify ( JsonNode json ) { try { return mapper ( ) . writerWithDefaultPrettyPrinter ( ) . writeValueAsString ( json ) ; } catch ( JsonProcessingException e ) { throw new RuntimeException ( "Cannot stringify the input json node" , e ) ; } }
Converts a JsonNode to its string representation . This implementation use a pretty printer .