Click or drag to resize
JsonDynamicAddObject Method (String)
Adds an empty object property and returns its instance.

Namespace: Dextronet.Jsonie
Assembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax
public JsonDynamic AddObject(
	string key
)

Parameters

key
Type: SystemString
The key of the object to add.

Return Value

Type: JsonDynamic
The added objec tas dynamic.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
ArgumentExceptionAn property with the same key already exists.
InvalidCastExceptionIf this object does not wrap JsonObject.
See Also