JsonStringWriter
- class JsonStringWriter
Serialization writer that outputs JSON string
Members defined in
JsonStringWriter(5 members)
RWCurrently set options. Note that this returns a copy of the options.
RCurrently written text. May be incomplete JSON string.
RResult of serialization. Guaranteed to be valid JSON string.
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.