C# Класс Netduino.WebServer.Core.Json.JsonPrimitives

Показать файл Открыть проект

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

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

Deserializes the specified Json string into an object whose type matches what was discovered in the PropertyTable.

DumpObjects ( Hashtable hash, int level ) : void
Serialize ( object o ) : string

Convert a value to JSON.

For objects, only public fields are converted.

Приватные методы

Метод Описание
DumpObjectArray ( ArrayList array, int level ) : void
GetSerializeState ( object o ) : SerializeStatus

Determines if the specified object needs to be serialized. It needs to be serialized if it's a class that contains properties that need enumeration. All other objects that can be directly returned, such as ints, strings, etc, do not need to be serialized.

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

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

Deserializes the specified Json string into an object whose type matches what was discovered in the PropertyTable.
public static Deserialize ( string json ) : object
json string
Результат object

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

public static DumpObjects ( Hashtable hash, int level ) : void
hash System.Collections.Hashtable
level int
Результат void

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

Convert a value to JSON.
For objects, only public fields are converted.
public static Serialize ( object o ) : string
o object The value to convert. Supported types are: Boolean, String, Byte, (U)Int16, (U)Int32, Float, Double, Decimal, JsonObject, JsonArray, Array, Object and null.
Результат string