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. |
isPretty | Specifies whether the serialized JSON string should be indented. |
IJson |
customizer | The customizer for JSON serialization. |
Returns
Type | Description |
---|---|
System. |
The result JSON string. |
ToJsonString(IEnumerable<DataRow>, Boolean, IJsonCustomizer)
Serializes into JSON string for specified DataRow objects.
Declaration
public string ToJsonString(IEnumerable<DataRow> dataRows, bool isPretty, IJsonCustomizer customizer = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
dataRows | The specified DataRow objects. |
System. |
isPretty | Specifies whether the serialized JSON string should be indented. |
IJson |
customizer | The customizer for JSON serialization. |
Returns
Type | Description |
---|---|
System. |
The result JSON string. |