Class JSONWriter


  • public class JSONWriter
    extends Object
    Deprecated.
    Use a third-party JSON library, e.g. Jackson or Gson
    Will be removed in 6.0
    • Constructor Detail

      • JSONWriter

        public JSONWriter()
        Deprecated.
      • JSONWriter

        public JSONWriter​(boolean indenting)
        Deprecated.
    • Method Detail

      • getIndentMode

        public boolean getIndentMode()
        Deprecated.
      • setIndentMode

        public void setIndentMode​(boolean value)
        Deprecated.
      • write

        public String write​(Object object)
        Deprecated.
      • write

        public String write​(long n)
        Deprecated.
      • write

        public Object write​(double d)
        Deprecated.
      • write

        public String write​(char c)
        Deprecated.
      • write

        public String write​(boolean b)
        Deprecated.
      • writeLimited

        public void writeLimited​(Class<?> klass,
                                 Object object,
                                 String[] properties)
        Deprecated.
        Write only a certain subset of the object's properties and fields.
        Parameters:
        klass - the class to look up properties etc in
        object - the object
        properties - explicit list of property/field names to include - may be null for "all"