JsonNodeJsonName Property

The node name will only be set when the node represents a child member of an object node. This is the name as it would appear in a JSON document, but without the surrounding quotation marks.

Definition

Namespace: MichaelBrooks.UK.Json
Assembly: JsonDOM (in JsonDOM.dll) Version: 1.0.7
C#
public string? JsonName { get; set; }

Property Value

String

Remarks

  Note

Multiple sibling members with the same name may legally co-exist within a JSON object (see ECMA-404 specification).

Online page.

Exceptions

InvalidOperationExceptionThrown when attempt to Get or Set when this node is not a child of an object node.

See Also