C# Class StandaloneNode.JSONObject

Represents an object encoded in JSON. Can be either a dictionary mapping strings to other objects, an array of objects, or a single object, which represents a scalar.
Exibir arquivo Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
CreateFromString ( string s ) : JSONObject

Creates a JSONObject by parsing a string. This is the only correct way to create a JSONObject.

ToDisplayableString ( ) : string

Prints the JSONObject as a formatted string, suitable for viewing.

Private Methods

Method Description
Create ( object o ) : JSONObject

Recursively constructs this JSONObject

JSONObject ( ) : System
RecursiveDictionaryToString ( JSONObject obj, StringBuilder sb, int level ) : void
RecursiveObjectToString ( JSONObject obj, StringBuilder sb, int level ) : void

Method Details

CreateFromString() public static method

Creates a JSONObject by parsing a string. This is the only correct way to create a JSONObject.
public static CreateFromString ( string s ) : JSONObject
s string
return JSONObject

ToDisplayableString() public method

Prints the JSONObject as a formatted string, suitable for viewing.
public ToDisplayableString ( ) : string
return string