Package com.rabbitmq.tools.json
Class JSONWriter
java.lang.Object
com.rabbitmq.tools.json.JSONWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetIndentMode(boolean value) write(boolean b) write(char c) write(double d) write(long n) voidwriteLimited(Class<?> klass, Object object, String[] properties) Write only a certain subset of the object's properties and fields.
-
Constructor Details
-
JSONWriter
public JSONWriter() -
JSONWriter
public JSONWriter(boolean indenting)
-
-
Method Details
-
getIndentMode
public boolean getIndentMode() -
setIndentMode
public void setIndentMode(boolean value) -
write
-
write
-
write
-
write
-
write
-
writeLimited
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"
-