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 booleangetIndentMode()Deprecated.voidsetIndentMode(boolean value)Deprecated.Stringwrite(boolean b)Deprecated.Stringwrite(char c)Deprecated.Objectwrite(double d)Deprecated.Stringwrite(long n)Deprecated.Stringwrite(Object object)Deprecated.voidwriteLimited(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"
-
-