Свойство | Тип | Описание | |
---|---|---|---|
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.
|
|
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
|
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
protected GetLastIndexOfNumber ( char json, int index ) : int | ||
json | char | |
index | int | |
Результат | int |
protected GetLastIndexOfRegEx ( char json, int index ) : int | ||
json | char | |
index | int | |
Результат | int |
protected LookAhead ( char json, int index ) : int | ||
json | char | |
index | int | |
Результат | int |
protected NextToken ( char json, int &index ) : int | ||
json | char | |
index | int | |
Результат | int |
public Parse ( string json ) : object | ||
json | string | A JSON string. |
Результат | object |
protected ParseArray ( char json, int &index ) : List | ||
json | char | |
index | int | |
Результат | List |
protected ParseNumber ( char json, int &index ) : object | ||
json | char | |
index | int | |
Результат | object |
protected ParseObject ( char json, int &index ) : |
||
json | char | |
index | int | |
Результат |
protected ParseString ( char json, int &index, bool allowNonQutedString ) : string | ||
json | char | |
index | int | |
allowNonQutedString | bool | |
Результат | string |
protected ParseValue ( char json, int &index, bool &success ) : object | ||
json | char | |
index | int | |
success | bool | |
Результат | object |