public class JSONWriter extends Object
Constructor and Description |
---|
JSONWriter()
Instantiates a new Json writer.
|
JSONWriter(boolean emitClassName)
Instantiates a new Json writer.
|
JSONWriter(DateFormat format)
Instantiates a new Json writer.
|
Modifier and Type | Method and Description |
---|---|
String |
write(boolean b)
Write string.
|
String |
write(char c)
Write string.
|
String |
write(double d)
Write string.
|
String |
write(long n)
Write string.
|
String |
write(Object object)
Write string.
|
String |
write(Object object,
boolean isApiModel)
Write string.
|
public JSONWriter(boolean emitClassName)
emitClassName
- the emit class namepublic JSONWriter()
public JSONWriter(DateFormat format)
format
- the formatpublic String write(Object object)
object
- the objectpublic String write(Object object, boolean isApiModel)
object
- the objectisApiModel
- the is api modelpublic String write(long n)
n
- the npublic String write(double d)
d
- the dpublic String write(char c)
c
- the cpublic String write(boolean b)
b
- the bCopyright © 2018. All rights reserved.