Detailed Description

An object returned from JSON text.

Inheritance diagram for Json.JSObject:
Json.JSArray Json.JSLiteral Json.JSNumber Json.JSValue Json.JSIndexedArray

Public Member Functions

void push (string value)
 Adds the given string to this object. More...
 
virtual void push (JSObject value)
 Adds the given JSON object to this object. More...
 
string CaseString (string index, bool upperCase)
 Gets the named index as a string, then trims and upper/lowercases it. Null if the index doesn't exist. More...
 
string String (string index)
 Gets the named index as a string. Null if the index doesn't exist. More...
 
string ToJSONString ()
 Turns this JSON object into a JSON formatted string. More...
 
virtual void ToJSONString (System.Text.StringBuilder builder)
 Turns this JSON object into a JSON formatted string. More...
 
virtual IEnumerator
< KeyValuePair< string,
JSObject > > 
GetEnumerator ()
 

Properties

virtual int internalLength [get]
 The number of values in this object. More...
 
int length [get]
 The number of values in this object. More...
 
virtual JSObject this[string index] [get, set]
 Gets or sets entries from this object. More...
 
JSObject this[int index] [get, set]
 Gets or sets entries from this object. More...
 

Private Member Functions

IEnumerator IEnumerable. GetEnumerator ()
 

Member Function Documentation

string Json.JSObject.CaseString ( string  index,
bool  upperCase 
)
inline

Gets the named index as a string, then trims and upper/lowercases it. Null if the index doesn't exist.

IEnumerator IEnumerable. Json.JSObject.GetEnumerator ( )
inlineprivate
virtual IEnumerator< KeyValuePair<string,JSObject> > Json.JSObject.GetEnumerator ( )
inlinevirtual

Reimplemented in Json.JSArray.

void Json.JSObject.push ( string  value)
inline

Adds the given string to this object.

virtual void Json.JSObject.push ( JSObject  value)
inlinevirtual

Adds the given JSON object to this object.

Reimplemented in Json.JSArray.

string Json.JSObject.String ( string  index)
inline

Gets the named index as a string. Null if the index doesn't exist.

string Json.JSObject.ToJSONString ( )
inline

Turns this JSON object into a JSON formatted string.

virtual void Json.JSObject.ToJSONString ( System.Text.StringBuilder  builder)
inlinevirtual

Turns this JSON object into a JSON formatted string.

Reimplemented in Json.JSArray.

Property Documentation

virtual int Json.JSObject.internalLength
getprotected

The number of values in this object.

int Json.JSObject.length
get

The number of values in this object.

JSObject Json.JSObject.this[int index]
getset

Gets or sets entries from this object.

virtual JSObject Json.JSObject.this[string index]
getset

Gets or sets entries from this object.