Method ToJsonString
| Improve this Doc View SourceToJsonString(Boolean, IJsonCustomizer)
Serializes into JSON string.
Declaration
public string ToJsonString(bool isPretty, IJsonCustomizer customizer = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | isPretty | Specifies whether serialized JSON should be indented. |
| IJsonCustomizer | customizer | Customizer for JSON serialization. |
Returns
| Type | Description |
|---|---|
| System.String | The serialized JSON string. |