Méthode | Description | |
---|---|---|
JsonDecode ( string json ) : object |
Parses the string json into a value
|
|
JsonDecode ( string json, bool &success ) : object |
Parses the string json into a value; and fills 'success' with the successfullness of the parse.
|
|
JsonDecodeConfig ( string configFile ) : object | ||
JsonDecodeFromFile ( string file ) : object | ||
JsonDecodeFromVar ( string file ) : object |
Decodes a JSON string stored in a text file. Assumes the string is defined as a JS variable.
|
|
JsonEncode ( object json ) : string |
Converts a Hashtable / ArrayList object into a JSON string
|
Méthode | Description | |
---|---|---|
EatWhitespace ( char json, int &index ) : void | ||
GetLastIndexOfNumber ( char json, int index ) : int | ||
LookAhead ( char json, int index ) : int | ||
NextToken ( char json, int &index ) : int | ||
ParseArray ( char json, int &index, bool &success ) : |
||
ParseNumber ( char json, int &index, bool &success ) : double | ||
ParseObject ( char json, int &index, bool &success ) : |
||
ParseString ( char json, int &index, bool &success ) : string | ||
ParseValue ( char json, int &index, bool &success ) : object | ||
SerializeArray ( |
||
SerializeNumber ( double number, StringBuilder builder ) : bool | ||
SerializeObject ( |
||
SerializeString ( string aString, StringBuilder builder ) : bool | ||
SerializeValue ( object value, StringBuilder builder ) : bool |
protected static EatWhitespace ( char json, int &index ) : void | ||
json | char | |
index | int | |
Résultat | void |
protected static GetLastIndexOfNumber ( char json, int index ) : int | ||
json | char | |
index | int | |
Résultat | int |
public static JsonDecode ( string json ) : object | ||
json | string | A JSON string. |
Résultat | object |
public static JsonDecode ( string json, bool &success ) : object | ||
json | string | A JSON string. |
success | bool | Successful parse? |
Résultat | object |
public static JsonDecodeConfig ( string configFile ) : object | ||
configFile | string | |
Résultat | object |
public static JsonDecodeFromFile ( string file ) : object | ||
file | string | |
Résultat | object |
public static JsonDecodeFromVar ( string file ) : object | ||
file | string | File to open for decoding |
Résultat | object |
public static JsonEncode ( object json ) : string | ||
json | object | A Hashtable / ArrayList |
Résultat | string |
protected static LookAhead ( char json, int index ) : int | ||
json | char | |
index | int | |
Résultat | int |
protected static NextToken ( char json, int &index ) : int | ||
json | char | |
index | int | |
Résultat | int |
protected static ParseArray ( char json, int &index, bool &success ) : |
||
json | char | |
index | int | |
success | bool | |
Résultat |
protected static ParseNumber ( char json, int &index, bool &success ) : double | ||
json | char | |
index | int | |
success | bool | |
Résultat | double |
protected static ParseObject ( char json, int &index, bool &success ) : |
||
json | char | |
index | int | |
success | bool | |
Résultat |
protected static ParseString ( char json, int &index, bool &success ) : string | ||
json | char | |
index | int | |
success | bool | |
Résultat | string |
protected static ParseValue ( char json, int &index, bool &success ) : object | ||
json | char | |
index | int | |
success | bool | |
Résultat | object |
protected static SerializeArray ( |
||
anArray | ||
builder | StringBuilder | |
Résultat | bool |
protected static SerializeNumber ( double number, StringBuilder builder ) : bool | ||
number | double | |
builder | StringBuilder | |
Résultat | bool |
protected static SerializeObject ( |
||
anObject | ||
builder | StringBuilder | |
Résultat | bool |
protected static SerializeString ( string aString, StringBuilder builder ) : bool | ||
aString | string | |
builder | StringBuilder | |
Résultat | bool |
protected static SerializeValue ( object value, StringBuilder builder ) : bool | ||
value | object | |
builder | StringBuilder | |
Résultat | bool |