프로퍼티 | 타입 | 설명 | |
---|---|---|---|
instance | GA_MiniJSON, | ||
lastDecode | string | ||
lastErrorIndex | int |
메소드 | 설명 | |
---|---|---|
GetLastErrorIndex ( ) : int |
On decoding, this function returns the position at which the parse failed (-1 = no error).
|
|
GetLastErrorSnippet ( ) : string |
If a decoding error occurred, this function returns a piece of the JSON string at which the error took place. To ease debugging.
|
|
JsonDecode ( string json ) : object |
Parses the string json into a value
|
|
JsonEncode ( object json ) : string |
Converts a Hashtable / ArrayList object into a JSON string
|
|
LastDecodeSuccessful ( ) : bool |
On decoding, this function returns the position at which the parse failed (-1 = no error).
|
메소드 | 설명 | |
---|---|---|
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 ) : ArrayList | ||
ParseNumber ( char json, int &index ) : float | ||
ParseObject ( char json, int &index ) : Hashtable | ||
ParseString ( char json, int &index ) : string | ||
ParseValue ( char json, int &index, bool &success ) : object | ||
SerializeArray ( ArrayList anArray, StringBuilder builder ) : bool | ||
SerializeNumber ( float number, StringBuilder builder ) : void | ||
SerializeObject ( Hashtable anObject, StringBuilder builder ) : bool | ||
SerializeObjectOrArray ( object objectOrArray, StringBuilder builder ) : bool | ||
SerializeString ( string aString, StringBuilder builder ) : void | ||
SerializeValue ( object value, StringBuilder builder ) : bool |
protected EatWhitespace ( char json, int &index ) : void | ||
json | char | |
index | int | |
리턴 | void |
protected GetLastIndexOfNumber ( char json, int index ) : int | ||
json | char | |
index | int | |
리턴 | int |
public static JsonDecode ( string json ) : object | ||
json | string | A JSON string. |
리턴 | object |
public static JsonEncode ( object json ) : string | ||
json | object | A Hashtable / ArrayList |
리턴 | string |
protected ParseArray ( char json, int &index ) : ArrayList | ||
json | char | |
index | int | |
리턴 | ArrayList |
protected ParseNumber ( char json, int &index ) : float | ||
json | char | |
index | int | |
리턴 | float |
protected ParseObject ( char json, int &index ) : Hashtable | ||
json | char | |
index | int | |
리턴 | Hashtable |
protected ParseString ( char json, int &index ) : string | ||
json | char | |
index | int | |
리턴 | string |
protected ParseValue ( char json, int &index, bool &success ) : object | ||
json | char | |
index | int | |
success | bool | |
리턴 | object |
protected SerializeArray ( ArrayList anArray, StringBuilder builder ) : bool | ||
anArray | ArrayList | |
builder | StringBuilder | |
리턴 | bool |
protected SerializeNumber ( float number, StringBuilder builder ) : void | ||
number | float | |
builder | StringBuilder | |
리턴 | void |
protected SerializeObject ( Hashtable anObject, StringBuilder builder ) : bool | ||
anObject | Hashtable | |
builder | StringBuilder | |
리턴 | bool |
protected SerializeObjectOrArray ( object objectOrArray, StringBuilder builder ) : bool | ||
objectOrArray | object | |
builder | StringBuilder | |
리턴 | bool |
protected SerializeString ( string aString, StringBuilder builder ) : void | ||
aString | string | |
builder | StringBuilder | |
리턴 | void |
protected SerializeValue ( object value, StringBuilder builder ) : bool | ||
value | object | |
builder | StringBuilder | |
리턴 | bool |