Package com.rabbitmq.tools.json
Class JSONWriter
java.lang.Object
com.rabbitmq.tools.json.JSONWriter
Deprecated.
Use a third-party JSON library, e.g. Jackson or Gson
Will be removed in 6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringBuilder
Deprecated.(package private) static final char[]
Deprecated.private int
Deprecated.private boolean
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
add
(char c) Deprecated.private void
Deprecated.private void
Deprecated.private void
Deprecated.private void
Deprecated.private void
Deprecated.private void
bool
(boolean b) Deprecated.boolean
Deprecated.private void
Deprecated.private void
Deprecated.private void
newline()
Deprecated.void
setIndentMode
(boolean value) Deprecated.private void
Deprecated.private void
unicode
(char c) Deprecated.private void
Deprecated.write
(boolean b) Deprecated.write
(char c) Deprecated.write
(double d) Deprecated.write
(long n) Deprecated.Deprecated.void
writeLimited
(Class<?> klass, Object object, String[] properties) Deprecated.Write only a certain subset of the object's properties and fields.
-
Field Details
-
indentMode
private boolean indentModeDeprecated. -
indentLevel
private int indentLevelDeprecated. -
buf
Deprecated. -
hex
static final char[] hexDeprecated.
-
-
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
Deprecated. -
write
Deprecated. -
write
Deprecated. -
write
Deprecated. -
write
Deprecated. -
value
Deprecated. -
bean
Deprecated. -
writeLimited
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"
-
add
Deprecated. -
map
Deprecated. -
mapEntry
Deprecated. -
array
Deprecated. -
array
Deprecated. -
bool
private void bool(boolean b) Deprecated. -
string
Deprecated. -
add
Deprecated. -
add
private void add(char c) Deprecated. -
unicode
private void unicode(char c) Deprecated.
-