public abstract class JsonUtil
extends java.lang.Object
Constructor and Description |
---|
JsonUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
mapifyJson(AdaptrisMessage msg)
Turn a flat JSON object into a map.
|
static java.util.Map<java.lang.String,java.lang.String> |
mapifyJson(AdaptrisMessage msg,
NullConverter nc)
Turn a flat JSON object into a map.
|
public static java.util.Map<java.lang.String,java.lang.String> mapifyJson(AdaptrisMessage msg) throws java.io.IOException
msg
- the AdaptrisMessagejava.io.IOException
mapifyJson(AdaptrisMessage, NullConverter)
public static java.util.Map<java.lang.String,java.lang.String> mapifyJson(AdaptrisMessage msg, NullConverter nc) throws java.io.IOException
Nested JSON values are rendered as a string using JsonNode#toString()
.
msg
- the AdaptrisMessagenc
- the NullConverter
implementation to use in the event of a NullNode
; if null then
NullNode#asText()
is used (which returns "null" as opposed to null
).java.io.IOException