public interface JSONWriter
Should serialize an object into JavaScript Object Notation (JSON). If cyclic references are detected they should be nulled out.
Modifier and Type | Field and Description |
---|---|
static boolean |
ENUM_AS_BEAN_DEFAULT |
Modifier and Type | Method and Description |
---|---|
void |
setCacheBeanInfo(boolean cacheBeanInfo) |
void |
setDateFormatter(String defaultDateFormat) |
void |
setEnumAsBean(boolean enumAsBean) |
void |
setExcludeProxyProperties(boolean excludeProxyProperties) |
void |
setIgnoreHierarchy(boolean ignoreHierarchy) |
String |
write(Object object) |
String |
write(Object object,
Collection<Pattern> excludeProperties,
Collection<Pattern> includeProperties,
boolean excludeNullProperties) |
static final boolean ENUM_AS_BEAN_DEFAULT
String write(Object object) throws JSONException
JSONException
String write(Object object, Collection<Pattern> excludeProperties, Collection<Pattern> includeProperties, boolean excludeNullProperties) throws JSONException
JSONException
void setIgnoreHierarchy(boolean ignoreHierarchy)
void setEnumAsBean(boolean enumAsBean)
void setDateFormatter(String defaultDateFormat)
void setCacheBeanInfo(boolean cacheBeanInfo)
void setExcludeProxyProperties(boolean excludeProxyProperties)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.