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.
Namespace: MFiles.VAF.Configuration.JsonMappingAssembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
public JObject EnsureObjectExists(
JArray jArr,
int index
)
- jArr JArray
- The array that should contain an item with an object.
- index Int32
- The location in the array where an object should exist.
JObjectA reference to the property's object value.