C# Class ATUL_v1.JsonMethods

Datei anzeigen Open project: godaddy/ATUL

Public Methods

Method Description
GetJSONString ( DataTable Dt ) : string

Gets the JSON string.

StringToJSONString ( string sValue ) : string

String to JSON string.

ToJson ( DataSet data ) : object>.Dictionary

Toes the json.

ToJson ( DataTable table ) : object>.Dictionary

Toes the json.

XmlToJSON ( XmlDocument xmlDoc ) : string

Private Methods

Method Description
OutputNode ( string childname, object alChild, StringBuilder sbJSON, bool showNodeName ) : void
RowsToDictionary ( DataTable table ) : object>>.List
SafeJSON ( string sIn ) : string
StoreChildNode ( SortedList childNodeNames, string nodeName, object nodeValue ) : void
XmlToJSONnode ( StringBuilder sbJSON, XmlElement node, bool showNodeName ) : void

Method Details

GetJSONString() public static method

Gets the JSON string.
public static GetJSONString ( DataTable Dt ) : string
Dt System.Data.DataTable The dt.
return string

StringToJSONString() public static method

String to JSON string.
public static StringToJSONString ( string sValue ) : string
sValue string The s value.
return string

ToJson() public static method

Toes the json.
public static ToJson ( DataSet data ) : object>.Dictionary
data System.Data.DataSet The data.
return object>.Dictionary

ToJson() public static method

Toes the json.
public static ToJson ( DataTable table ) : object>.Dictionary
table System.Data.DataTable The table.
return object>.Dictionary

XmlToJSON() public static method

public static XmlToJSON ( XmlDocument xmlDoc ) : string
xmlDoc System.Xml.XmlDocument
return string