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 Details

  • Method Details

    • write

      String write(Object object) throws JSONException
      Throws:
      JSONException
    • write

      String write(Object object, Collection<Pattern> excludeProperties, Collection<Pattern> includeProperties, boolean excludeNullProperties) throws JSONException
      Throws:
      JSONException
    • setIgnoreHierarchy

      void setIgnoreHierarchy(boolean ignoreHierarchy)
    • setEnumAsBean

      void setEnumAsBean(boolean enumAsBean)
    • setDateFormatter

      void setDateFormatter(String defaultDateFormat)
    • setCacheBeanInfo

      void setCacheBeanInfo(boolean cacheBeanInfo)
    • setExcludeProxyProperties

      void setExcludeProxyProperties(boolean excludeProxyProperties)