Detailed Description

Represents a literal JSON value.

Inheritance diagram for Json.JSLiteral:
Json.JSObject

Public Member Functions

 JSLiteral ()
 Creates an empty JSON value. More...
 
 JSLiteral (string value)
 Creates a new JSON value for the given literal string. More...
 
override void ToJSONString (System.Text.StringBuilder builder)
 
override string ToString ()
 
- Public Member Functions inherited from Json.JSObject
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 ()
 

Public Attributes

string Value
 The raw string value. More...
 

Additional Inherited Members

- Properties inherited from Json.JSObject
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...
 

Constructor & Destructor Documentation

Json.JSLiteral.JSLiteral ( )
inline

Creates an empty JSON value.

Json.JSLiteral.JSLiteral ( string  value)
inline

Creates a new JSON value for the given literal string.

Member Function Documentation

override void Json.JSLiteral.ToJSONString ( System.Text.StringBuilder  builder)
inline
override string Json.JSLiteral.ToString ( )
inline

Member Data Documentation

string Json.JSLiteral.Value

The raw string value.