JsonObjectGetOrAddArray Method |
Gets value stored under given key and casts it to array. If key does not exist new empty array is added to the
specified key.
Namespace: Dextronet.JsonieAssembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax public JsonArray GetOrAddArray(
string key
)
Public Function GetOrAddArray (
key As String
) As JsonArray
Parameters
- key
- Type: SystemString
The key of the member to get.
Return Value
Type:
JsonArrayThe value stored under given key casted to
JsonArray.
Exceptions Examples
Dim myInnerArray = myObject.GetOrAddArray("inner")
myInnerArray.Add(True)
See Also