com.xebialabs.xltype.serialization.json
Class JsonWriter
java.lang.Object
com.xebialabs.xltype.serialization.json.JsonWriter
public class JsonWriter
- extends java.lang.Object
Wraps Jettison's JSONWriter, but does not throw checked exceptions. All JSONExceptions
are wrapped by a link SerializationExceptions.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JsonWriter
public JsonWriter()
JsonWriter
public JsonWriter(java.io.Writer writer)
getWriter
public java.io.Writer getWriter()
array
public JsonWriter array()
endArray
public JsonWriter endArray()
endObject
public JsonWriter endObject()
key
public JsonWriter key(java.lang.String s)
object
public JsonWriter object()
value
public JsonWriter value(boolean b)
value
public JsonWriter value(double b)
value
public JsonWriter value(long b)
value
public JsonWriter value(java.lang.Object b)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object