syside.JsonStringWriter

class JsonStringWriter(arg: syside.JsonStringOptions = ...)

Bases: Writer[str]

Serialization writer that outputs JSON string

Initialization

property partial_result: str

Currently written text. May be incomplete JSON string.

property result: str

Result of serialization. Guaranteed to be valid JSON string.

clear() None

Clear result. This is called automatically when serialization starts.

property options: syside.JsonStringOptions

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