public class JSONWriter extends Object
Constructor and Description |
---|
JSONWriter() |
JSONWriter(boolean indenting) |
Modifier and Type | Method and Description |
---|---|
boolean |
getIndentMode() |
void |
setIndentMode(boolean value) |
String |
write(boolean b) |
String |
write(char c) |
Object |
write(double d) |
String |
write(long n) |
String |
write(Object object) |
void |
writeLimited(Class<?> klass,
Object object,
String[] properties)
Write only a certain subset of the object's properties and fields.
|
public boolean getIndentMode()
public void setIndentMode(boolean value)
public String write(long n)
public Object write(double d)
public String write(char c)
public String write(boolean b)
public void writeLimited(Class<?> klass, Object object, String[] properties)
klass
- the class to look up properties etc inobject
- the objectproperties
- explicit list of property/field names to include - may be null for "all"Copyright © 2016 Pivotal Software, Inc.. All rights reserved.