public interface JsonFormatter
JsonFormatter
provides operations to turn JsonNode
s into valid JSON text.Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(JsonNode jsonNode)
Returns the specified
JsonNode formatted as a String. |
void |
format(JsonNode jsonNode,
java.io.Writer writer)
Streams the specified
JsonNode formatted to the specified Writer . |
java.lang.String format(JsonNode jsonNode)
JsonNode
formatted as a String.jsonNode
- the JsonNode
to format.JsonNode
formatted as a String.void format(JsonNode jsonNode, java.io.Writer writer) throws java.io.IOException
JsonNode
formatted to the specified Writer
.jsonNode
- the JsonNode
to format.writer
- the Writer
to stream the formatted JsonNode
to.java.io.IOException
- if there was a problem writing to the Writer
.