Property | Type | Description | |
---|---|---|---|
lastDecode | string | ||
lastErrorIndex | int |
Method | Description | |
---|---|---|
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.
|
|
LastDecodeSuccessful ( ) : bool |
On decoding, this function returns the position at which the parse failed (-1 = no error).
|
|
Parse ( string json ) : object |
Parses the string json into a value
|
Method | Description | |
---|---|---|
EatWhitespace ( char json, int &index ) : void | ||
GetLastIndexOfNumber ( char json, int index ) : int | ||
GetLastIndexOfRegEx ( char json, int index ) : int | ||
LookAhead ( char json, int index ) : int | ||
NextToken ( char json, int &index ) : int | ||
ParseArray ( char json, int &index ) : List | ||
ParseNumber ( char json, int &index ) : object | ||
ParseObject ( char json, int &index ) : |
||
ParseString ( char json, int &index, bool allowNonQutedString ) : string | ||
ParseValue ( char json, int &index, bool &success ) : object |
Method | Description | |
---|---|---|
ParseOID ( char json, int &index ) : object | ||
ParseRegEx ( char json, int &index ) : |
||
ParseStringOrDate ( char json, int &index ) : object |
protected EatWhitespace ( char json, int &index ) : void | ||
json | char | |
index | int | |
return | void |
protected GetLastIndexOfNumber ( char json, int index ) : int | ||
json | char | |
index | int | |
return | int |
protected GetLastIndexOfRegEx ( char json, int index ) : int | ||
json | char | |
index | int | |
return | int |
protected LookAhead ( char json, int index ) : int | ||
json | char | |
index | int | |
return | int |
protected NextToken ( char json, int &index ) : int | ||
json | char | |
index | int | |
return | int |
public Parse ( string json ) : object | ||
json | string | A JSON string. |
return | object |
protected ParseArray ( char json, int &index ) : List | ||
json | char | |
index | int | |
return | List |
protected ParseNumber ( char json, int &index ) : object | ||
json | char | |
index | int | |
return | object |
protected ParseObject ( char json, int &index ) : |
||
json | char | |
index | int | |
return |
protected ParseString ( char json, int &index, bool allowNonQutedString ) : string | ||
json | char | |
index | int | |
allowNonQutedString | bool | |
return | string |
protected ParseValue ( char json, int &index, bool &success ) : object | ||
json | char | |
index | int | |
success | bool | |
return | object |