JsonStringWriter

class JsonStringWriter

Serialization writer that outputs JSON string

%3 JsonStringWriter JsonStringWriter syside.JsonStringWriter Writer Writer syside.Writer Writer->JsonStringWriter
Members defined in JsonStringWriter (5 members)

options

RW

Currently set options. Note that this returns a copy of the options.

partial_result

R

Currently written text. May be incomplete JSON string.

result

R

Result of serialization. Guaranteed to be valid JSON string.

__init__

clear

Clear result. This is called automatically when serialization starts.

Members inherited from Writer (0 members)

Attributes

property options: syside.JsonStringOptions

Currently set options. Note that this returns a copy of the options.

property partial_result: str

Currently written text. May be incomplete JSON string.

property result: str

Result of serialization. Guaranteed to be valid JSON string.

Methods

__init__(arg: syside.JsonStringOptions = ...) None
__init__(indent: int = 2, use_spaces: bool = True, final_new_line: bool = True, include_cross_ref_uris: bool = True) None
clear() None

Clear result. This is called automatically when serialization starts.