C# 클래스 Netduino.WebServer.Core.Json.JsonPrimitives

파일 보기 프로젝트 열기: martinbuberl/Netduino

공개 메소드들

메소드 설명
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