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