Skip to main content

JsonConverter Class

Namespace: GHIElectronics.TinyCLR.Data.Json · Assembly: GHIElectronics.TinyCLR.Data.Json

Parses JSON text into a JToken tree and serializes objects back to JSON. Strict-on-emit, generous-on-accept per RFC 8259.

public static class JsonConverter

Methods

object()

public static object SyncObj = new object()

No description available.

Returns object SyncObj = new

Serialize(object oSource, JsonSerializerSettings settings)

public static JToken Serialize(object oSource, JsonSerializerSettings settings = null)

No description available.

ParameterTypeDescription
oSourceobject
settingsJsonSerializerSettings

Returns JToken

DeserializeObject(string sourceString, Type type, InstanceFactory factory)

public static object DeserializeObject(string sourceString, Type type, InstanceFactory factory = null)

No description available.

ParameterTypeDescription
sourceStringstring
typeType
factoryInstanceFactory

Returns object

DeserializeObject(Stream stream, Type type, InstanceFactory factory)

public static object DeserializeObject(Stream stream, Type type, InstanceFactory factory = null)

No description available.

ParameterTypeDescription
streamStream
typeType
factoryInstanceFactory

Returns object

DeserializeObject(StreamReader sr, Type type, InstanceFactory factory)

public static object DeserializeObject(StreamReader sr, Type type, InstanceFactory factory = null)

No description available.

ParameterTypeDescription
srStreamReader
typeType
factoryInstanceFactory

Returns object

Deserialize(string sourceString)

public static JToken Deserialize(string sourceString)

No description available.

ParameterTypeDescription
sourceStringstring

Returns JToken

Deserialize(Stream sourceStream)

public static JToken Deserialize(Stream sourceStream)

No description available.

ParameterTypeDescription
sourceStreamStream

Returns JToken

Deserialize(StreamReader sourceReader)

public static JToken Deserialize(StreamReader sourceReader)

No description available.

ParameterTypeDescription
sourceReaderStreamReader

Returns JToken

FromBson(byte[] buffer, InstanceFactory factory)

public static JToken FromBson(byte[] buffer, InstanceFactory factory = null)

No description available.

ParameterTypeDescription
bufferbyte[]
factoryInstanceFactory

Returns JToken

FromBson(byte[] buffer, Type resultType, InstanceFactory factory)

public static object FromBson(byte[] buffer, Type resultType, InstanceFactory factory = null)

No description available.

ParameterTypeDescription
bufferbyte[]
resultTypeType
factoryInstanceFactory

Returns object

Fields

SerializationContext

public static SerializationCtx SerializationContext

No description available.