Skip to main content

JToken Class

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

Abstract base for every JSON value type: JObject, JArray, JValue, and JProperty. Use JsonConverter to parse JSON text into a token tree or serialize a tree back to text.

public abstract class JToken

Methods

EnterSerialization(JsonSerializationOptions options)

protected void EnterSerialization(JsonSerializationOptions options = null)

No description available.

ParameterTypeDescription
optionsJsonSerializationOptions

ExitSerialization()

protected void ExitSerialization()

No description available.

Indent(bool incrementAfter)

protected string Indent(bool incrementAfter = false)

No description available.

ParameterTypeDescription
incrementAfterbool

Returns string

Outdent()

protected void Outdent()

No description available.

ToBson()

public byte[] ToBson()

No description available.

Returns byte[]

GetBsonType()

public abstract BsonTypes GetBsonType()

No description available.

Returns BsonTypes

GetBsonSize()

public abstract int GetBsonSize()

No description available.

Returns int

GetBsonSize(string ename)

public abstract int GetBsonSize(string ename)

No description available.

ParameterTypeDescription
enamestring

Returns int

ToBson(byte[] buffer, ref int offset)

public abstract void ToBson(byte[] buffer, ref int offset)

No description available.

ParameterTypeDescription
bufferbyte[]
offsetref int

ToBson(string ename, byte[] buffer, ref int offset)

public void ToBson(string ename, byte[] buffer, ref int offset)

No description available.

ParameterTypeDescription
enamestring
bufferbyte[]
offsetref int

MarshallEName(string ename, byte[] buffer, ref int offset)

protected void MarshallEName(string ename, byte[] buffer, ref int offset)

No description available.

ParameterTypeDescription
enamestring
bufferbyte[]
offsetref int

ToString(JsonSerializationOptions options)

public abstract string ToString(JsonSerializationOptions options)

No description available.

ParameterTypeDescription
optionsJsonSerializationOptions

Returns string