Skip to main content
Namespace: Phoenix.PaczAPI
Assembly: Phoenix.PaczAPI.dll

ToJson(bool)

Write out this object as a JSON string.

Parameters

pretty bool Whether to make the JSON human readable

Returns

string A string containing the generated JSON

Remarks

This version does not support file variables

Exceptions

NotSupportedException If a Phoenix.PaczAPI.IRuntimeVariable.DefaultValue is of type Phoenix.ModelCenter.Common.Types.FileValue and it contains contents Exception If there are any errors converting to JSON

ToJson(Func<FileValue, string>, bool)

Write out this object as a JSON string.

Parameters

fileStore Func<FileValue, string> If a Phoenix.PaczAPI.IRuntimeVariable.DefaultValue is of type FileValue and has contents this function will be called to allow the caller to store the contents out of bounds from the JSON. The string returned will be stored in the JSON. pretty bool Whether to make the JSON human readable

Returns

string A string containing the generated JSON

Exceptions

Exception If there are any errors converting to JSON