Class fsJsonPrinter
Namespace: Unity.VisualScripting.FullSerializer
Syntax
public static class fsJsonPrinter
Methods
CompressedJson(fsData)
Returns the data in a relatively compressed JSON format.
Declaration
public static string CompressedJson(fsData data)
Parameters
Type | Name | Description |
---|---|---|
fsData | data |
Returns
Type | Description |
---|---|
String |
CompressedJson(fsData, StreamWriter)
Writes the compressed JSON output data to the given stream.
Declaration
public static void CompressedJson(fsData data, StreamWriter outputStream)
Parameters
Type | Name | Description |
---|---|---|
fsData | data | The data to print. |
StreamWriter | outputStream | Where to write the printed data. |
PrettyJson(fsData)
Returns the data in a pretty printed JSON format.
Declaration
public static string PrettyJson(fsData data)
Parameters
Type | Name | Description |
---|---|---|
fsData | data |
Returns
Type | Description |
---|---|
String |
PrettyJson(fsData, TextWriter)
Writes the pretty JSON output data to the given stream.
Declaration
public static void PrettyJson(fsData data, TextWriter outputStream)
Parameters
Type | Name | Description |
---|---|---|
fsData | data | The data to print. |
TextWriter | outputStream | Where to write the printed data. |