Method ToJsonString
| Improve this Doc View SourceToJsonString(Boolean, IJsonCustomizer)
Serializes this DataSet into JSON string.
Declaration
public string ToJsonString(bool isPretty, IJsonCustomizer customizer = null)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isPretty | Specifies whether serialized JSON string should be indented. |
IJsonCustomizer | customizer | The customizer in serialization. |
Returns
Type | Description |
---|---|
System.String |
ToJsonString(IEnumerable<DataRow>, Boolean, IJsonCustomizer)
Serializes specified DataRow objects in this DataSet into JSON string.
Declaration
public string ToJsonString(IEnumerable<DataRow> dataRows, bool isPretty, IJsonCustomizer customizer = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<DataRow> | dataRows | Specifies the DataRow objects to be serialized. |
System.Boolean | isPretty | Specifies whether serialized JSON string should be indented. |
IJsonCustomizer | customizer | The customizer in serialization. |
Returns
Type | Description |
---|---|
System.String |