JsonNodeItem(String) Property
Alternative to using the
Children collection when the node is of type
Object, that gets
a child node keyed on its name. If duplicate named siblings exist, reacts as per the unexpectedDuplicateSiblingReaction
parameter of the current object's constructor.
If no child with the specified name exists, throws a
JsonNodeMemberNotFoundException.
If the node is not of type Object, throws an
InvalidOperationException.
Namespace: MichaelBrooks.UK.JsonAssembly: JsonDOM (in JsonDOM.dll) Version: 1.0.7
public JsonNode this[
string name
] { get; }
- name String
- The name of the JSON object's member to be accessed.
JsonNode
The existence of the
Children property plus this property and its indexing equivalent
is a very deliberate contravention of Occam's Razor in order to
simplify the calling code in most circumstances. This property and the
ItemInt32 property can be
used in chains to effectively support the bracketed notation form of JSONPath for navigating the parse tree.
This property only supports the get operation. If you wish to add a new child node to the parent object, you must
do so via the
Children collection.
Online page.