Package com.structurizr.io.json
Class JsonWriter
java.lang.Object
com.structurizr.io.json.JsonWriter
- All Implemented Interfaces:
WorkspaceWriter
Writes a workspace definition as a JSON string.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JsonWriter
public JsonWriter(boolean indentOutput)
-
-
Method Details
-
write
public void write(com.structurizr.Workspace workspace, Writer writer) throws WorkspaceWriterException Writes a workspace definition as a JSON string to the specified Writer object.- Specified by:
writein interfaceWorkspaceWriter- Parameters:
workspace- the Workspace object to writewriter- the Writer object to write the workspace to- Throws:
WorkspaceWriterException- if something goes wrong
-