Table of Contents

Class JsonWriter

Namespace
C4.Net.IO.Json
Assembly
C4.Net.Client.dll

Serializes workspaces to JSON.

public class JsonWriter
Inheritance
JsonWriter
Inherited Members

Constructors

JsonWriter(bool)

Creates a workspace JSON writer.

public JsonWriter(bool indentOutput)

Parameters

indentOutput bool

Whether generated JSON should be indented.

Properties

IndentOutput

Controls whether generated JSON should be indented for readability.

public bool IndentOutput { get; set; }

Property Value

bool

Methods

Write(Workspace, TextWriter)

Writes a workspace as JSON.

public void Write(Workspace workspace, TextWriter writer)

Parameters

workspace Workspace

The workspace to serialize.

writer TextWriter

The writer that receives the JSON payload.