Package org.apache.struts2.json
Interface JSONWriter
- All Known Implementing Classes:
- DefaultJSONWriter
public interface JSONWriter
Should serialize an object into JavaScript Object Notation (JSON). If cyclic references are detected they should be nulled out.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetCacheBeanInfo(boolean cacheBeanInfo) voidsetDateFormatter(String defaultDateFormat) voidsetEnumAsBean(boolean enumAsBean) voidsetExcludeProxyProperties(boolean excludeProxyProperties) voidsetIgnoreHierarchy(boolean ignoreHierarchy) write(Object object, Collection<Pattern> excludeProperties, Collection<Pattern> includeProperties, boolean excludeNullProperties) 
- 
Field Details- 
ENUM_AS_BEAN_DEFAULTstatic final boolean ENUM_AS_BEAN_DEFAULT- See Also:
 
 
- 
- 
Method Details- 
write- Throws:
- JSONException
 
- 
writeString write(Object object, Collection<Pattern> excludeProperties, Collection<Pattern> includeProperties, boolean excludeNullProperties) throws JSONException - Throws:
- JSONException
 
- 
setIgnoreHierarchyvoid setIgnoreHierarchy(boolean ignoreHierarchy) 
- 
setEnumAsBeanvoid setEnumAsBean(boolean enumAsBean) 
- 
setDateFormatter
- 
setCacheBeanInfovoid setCacheBeanInfo(boolean cacheBeanInfo) 
- 
setExcludeProxyPropertiesvoid setExcludeProxyProperties(boolean excludeProxyProperties) 
 
-