public static class JsonUtil.JsonParserBuilder
extends java.lang.Object
JsonParser instance.| Modifier and Type | Method and Description |
|---|---|
JsonUtil.JsonParser |
create()
Creates an instance of
JsonParser using the configured
customizations. |
static JsonUtil.JsonParserBuilder |
custom()
Returns a
JsonParserBuilder object for customizations which
will govern the behavior of the JsonParser. |
static JsonUtil.JsonParser |
defaultJsonParser()
Returns the default customized instance of
JsonParser which
will skip null values in the objects while converting to Json
representation and disables HTML escaping. |
JsonUtil.JsonParserBuilder |
disableHtmlEscaping()
Disables HTML escaping while converting to json representation.
|
JsonUtil.JsonParserBuilder |
serializeNulls()
Enables serialization of
null values in the json
representation. |
JsonUtil.JsonParserBuilder |
setDateFormat(java.lang.String dateFormat)
Set Date Formatting while converting json to String representation.
|
public static JsonUtil.JsonParser defaultJsonParser()
JsonParser which
will skip null values in the objects while converting to Json
representation and disables HTML escaping.public static JsonUtil.JsonParserBuilder custom()
JsonParserBuilder object for customizations which
will govern the behavior of the JsonParser.JsonParserBuilder instancepublic JsonUtil.JsonParserBuilder serializeNulls()
null values in the json
representation.public JsonUtil.JsonParserBuilder disableHtmlEscaping()
public JsonUtil.JsonParser create()
JsonParser using the configured
customizations.JsonUtil instancepublic JsonUtil.JsonParserBuilder setDateFormat(java.lang.String dateFormat)