JObjectHelperEnsureObjectExists(JArray, Int32) Method

Returns a reference to an object at the specified index within an array. Creating an object at the specified location if one doesn't already exist there. Throws an exception if a non-object value already exists at the index.

Definition

Namespace: MFiles.VAF.Configuration.JsonMapping
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public JObject EnsureObjectExists(
	JArray jArr,
	int index
)

Parameters

jArr  JArray
The array that should contain an item with an object.
index  Int32
The location in the array where an object should exist.

Return Value

JObject
A reference to the property's object value.

See Also