Skip to main content

JArray Class

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

A JSON array — an ordered sequence of JToken elements.

public class JArray : JToken

Constructors

JArray()

public JArray()

No description available.

JArray(JToken[] values)

public JArray(JToken[] values)

No description available.

ParameterTypeDescription
valuesJToken[]

Properties

Length

public int Length { get; }

Gets length of bytes in the stream. (inherited)

Items

public JToken[] Items { get; }

No description available.

i]

public JToken this[int i] { get; }

Gets an individual member of the collection. (inherited)

Methods

Serialize(Type type, object oSource, JsonSerializerSettings settings)

public static JArray Serialize(Type type, object oSource, JsonSerializerSettings settings = null)

No description available.

ParameterTypeDescription
typeType
oSourceobject
settingsJsonSerializerSettings

Returns JArray

ToString()

public override string ToString()

String representation (inherited)

Returns string

ToString(JsonSerializationOptions options)

public override string ToString(JsonSerializationOptions options)

No description available.

ParameterTypeDescription
optionsJsonSerializationOptions

Returns string

GetBsonSize()

public override int GetBsonSize()

No description available.

Returns int

GetBsonSize(string ename)

public override int GetBsonSize(string ename)

No description available.

ParameterTypeDescription
enamestring

Returns int

ToBson(byte[] buffer, ref int offset)

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

No description available.

ParameterTypeDescription
bufferbyte[]
offsetref int

GetBsonType()

public override BsonTypes GetBsonType()

No description available.

Returns BsonTypes