Package com.rabbitmq.tools.json
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 GsonWill be removed in 6.0
-
-
Constructor Summary
Constructors Constructor Description JSONWriter()
Deprecated.JSONWriter(boolean indenting)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
getIndentMode()
Deprecated.void
setIndentMode(boolean value)
Deprecated.String
write(boolean b)
Deprecated.String
write(char c)
Deprecated.Object
write(double d)
Deprecated.String
write(long n)
Deprecated.String
write(Object object)
Deprecated.void
writeLimited(Class<?> klass, Object object, String[] properties)
Deprecated.Write only a certain subset of the object's properties and fields.
-
-
-
Method Detail
-
getIndentMode
public boolean getIndentMode()
Deprecated.
-
setIndentMode
public void setIndentMode(boolean value)
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 inobject
- the objectproperties
- explicit list of property/field names to include - may be null for "all"
-
-