Maven module :un.storage : binding-json :
Class : un.storage.binding.json.JSONWriter
Extends/Implements : un.api.io.AbstractWriter
Subclasses : -

JSON writer.
author  Johann Sorel


Variables : -
Functions : JSONWriter, getEncoding, setEncoding, setFormatted, isFormatted, getIndentation, setIndentation, writeObjectBegin, writeObjectEnd, writeArrayBegin, writeArrayEnd, writeName, writeValue, writeProperty



public void JSONWriter ()

public CharEncoding getEncoding ()

public void setEncoding (CharEncoding encoding)

public void setFormatted (boolean formatted)

public boolean isFormatted ()

public Chars getIndentation ()

public void setIndentation (Chars indentation)


Write object begin '{' .

@throws IOException
public void writeObjectBegin ()


Write object end '}' .

@throws IOException
public void writeObjectEnd ()


Write array begin '[' .

@throws IOException
public void writeArrayBegin ()


Write array end ']' .

@throws IOException
public void writeArrayEnd ()


Write JSON name and the name separator ':' .
Value separators are automatically written if needed.

@param name
@throws IOException
public void writeName (Chars name)


Write value.
throws  IOException
public void writeValue (Object value)


Shortcut for writing : name + name separator + value
Array type values are support but only primitive values.
param  name property name
param  value property value
throws  un.api.io.IOException
public void writeProperty (Chars name, Object value)