C# Класс Procurios.Public.JSON

This class encodes and decodes JSON strings. Spec. details, see http://www.json.org/ JSON uses Arrays and Objects. These correspond here to the datatypes ArrayList and Hashtable. All numbers are parsed to doubles.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetValue ( object obj, string name ) : object
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.

Защищенные методы

Метод Описание
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 ) : List
ParseNumber ( char json, int &index, bool &success ) : double
ParseObject ( char json, int &index, bool &success ) : object>.Dictionary
ParseString ( char json, int &index, bool &success ) : string
ParseValue ( char json, int &index, bool &success ) : object

Описание методов

EatWhitespace() защищенный статический Метод

protected static EatWhitespace ( char json, int &index ) : void
json char
index int
Результат void

GetLastIndexOfNumber() защищенный статический Метод

protected static GetLastIndexOfNumber ( char json, int index ) : int
json char
index int
Результат int

GetValue() публичный статический Метод

public static GetValue ( object obj, string name ) : object
obj object
name string
Результат object

JsonDecode() публичный статический Метод

Parses the string json into a value
public static JsonDecode ( string json ) : object
json string A JSON string.
Результат object

JsonDecode() публичный статический Метод

Parses the string json into a value; and fills 'success' with the successfullness of the parse.
public static JsonDecode ( string json, bool &success ) : object
json string A JSON string.
success bool Successful parse?
Результат object

LookAhead() защищенный статический Метод

protected static LookAhead ( char json, int index ) : int
json char
index int
Результат int

NextToken() защищенный статический Метод

protected static NextToken ( char json, int &index ) : int
json char
index int
Результат int

ParseArray() защищенный статический Метод

protected static ParseArray ( char json, int &index, bool &success ) : List
json char
index int
success bool
Результат List

ParseNumber() защищенный статический Метод

protected static ParseNumber ( char json, int &index, bool &success ) : double
json char
index int
success bool
Результат double

ParseObject() защищенный статический Метод

protected static ParseObject ( char json, int &index, bool &success ) : object>.Dictionary
json char
index int
success bool
Результат object>.Dictionary

ParseString() защищенный статический Метод

protected static ParseString ( char json, int &index, bool &success ) : string
json char
index int
success bool
Результат string

ParseValue() защищенный статический Метод

protected static ParseValue ( char json, int &index, bool &success ) : object
json char
index int
success bool
Результат object