Свойство | Type | Description | |
---|---|---|---|
lastDecode | string | ||
lastErrorIndex | int |
Méthode | 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
|
Méthode | 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 |
Méthode | 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 | |
Résultat | void |
protected GetLastIndexOfNumber ( char json, int index ) : int | ||
json | char | |
index | int | |
Résultat | int |
protected GetLastIndexOfRegEx ( char json, int index ) : int | ||
json | char | |
index | int | |
Résultat | int |
protected LookAhead ( char json, int index ) : int | ||
json | char | |
index | int | |
Résultat | int |
protected NextToken ( char json, int &index ) : int | ||
json | char | |
index | int | |
Résultat | int |
public Parse ( string json ) : object | ||
json | string | A JSON string. |
Résultat | object |
protected ParseArray ( char json, int &index ) : List | ||
json | char | |
index | int | |
Résultat | List |
protected ParseNumber ( char json, int &index ) : object | ||
json | char | |
index | int | |
Résultat | object |
protected ParseObject ( char json, int &index ) : |
||
json | char | |
index | int | |
Résultat |
protected ParseString ( char json, int &index, bool allowNonQutedString ) : string | ||
json | char | |
index | int | |
allowNonQutedString | bool | |
Résultat | string |
protected ParseValue ( char json, int &index, bool &success ) : object | ||
json | char | |
index | int | |
success | bool | |
Résultat | object |