Show / Hide Table of Contents

Method ToJsonString

| Improve this Doc View Source

ToJsonString(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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest