C# Класс Appboy.Utilities.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 IList and IDictionary. All numbers are parsed to doubles.
Показать файл Открыть проект

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

Метод Описание
Deserialize ( string json ) : object

Parses the string json into a value

Serialize ( object obj ) : string

Converts a IDictionary / IList object or a simple type (string, int, etc.) into a JSON string

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

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

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

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

Converts a IDictionary / IList object or a simple type (string, int, etc.) into a JSON string
public static Serialize ( object obj ) : string
obj object
Результат string