public final class JsonWriter extends java.lang.Object implements WorkspaceWriter
| Constructor and Description |
|---|
JsonWriter(boolean indentOutput) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(com.structurizr.Workspace workspace,
java.io.Writer writer)
Writes a workspace definition as a JSON string to the specified Writer object.
|
public void write(com.structurizr.Workspace workspace,
java.io.Writer writer)
throws WorkspaceWriterException
write in interface WorkspaceWriterworkspace - the Workspace object to writewriter - the Writer object to write the workspace toWorkspaceWriterException - if something goes wrong