Class JsonWriter
Serializes workspaces to JSON.
public class JsonWriter
- Inheritance
-
JsonWriter
- Inherited Members
Constructors
JsonWriter(bool)
Creates a workspace JSON writer.
public JsonWriter(bool indentOutput)
Parameters
indentOutputboolWhether generated JSON should be indented.
Properties
IndentOutput
Controls whether generated JSON should be indented for readability.
public bool IndentOutput { get; set; }
Property Value
Methods
Write(Workspace, TextWriter)
Writes a workspace as JSON.
public void Write(Workspace workspace, TextWriter writer)
Parameters
workspaceWorkspaceThe workspace to serialize.
writerTextWriterThe writer that receives the JSON payload.