Class JSONWriter

java.lang.Object
com.rabbitmq.tools.json.JSONWriter

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

    • indentMode

      private boolean indentMode
      Deprecated.
    • indentLevel

      private int indentLevel
      Deprecated.
    • buf

      private final StringBuilder buf
      Deprecated.
    • hex

      static final char[] hex
      Deprecated.
  • Constructor Details

    • JSONWriter

      public JSONWriter()
      Deprecated.
    • JSONWriter

      public JSONWriter(boolean indenting)
      Deprecated.
  • Method Details

    • getIndentMode

      public boolean getIndentMode()
      Deprecated.
    • setIndentMode

      public void setIndentMode(boolean value)
      Deprecated.
    • newline

      private void newline()
      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.
    • value

      private void value(Object object)
      Deprecated.
    • bean

      private void bean(Object object)
      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"
    • add

      private void add(String name, Object value)
      Deprecated.
    • map

      private void map(Map<String,Object> map)
      Deprecated.
    • mapEntry

      private void mapEntry(Object key, Map<String,Object> map)
      Deprecated.
    • array

      private void array(Iterator<?> it)
      Deprecated.
    • array

      private void array(Object object)
      Deprecated.
    • bool

      private void bool(boolean b)
      Deprecated.
    • string

      private void string(Object obj)
      Deprecated.
    • add

      private void add(Object obj)
      Deprecated.
    • add

      private void add(char c)
      Deprecated.
    • unicode

      private void unicode(char c)
      Deprecated.