Class Sealed
public sealed class MokaJsonNodeContext

Namespace: Moka.Blazor.Json.Models

Contextual information about the node on which a context menu action was invoked.

Properties

NameDescription
Depth The depth of this node in the tree (root = 0).
Path The JSON Pointer path (RFC 6901) to this node, e.g. "/users/0/name".
PropertyName The property name if this node is an object member; null for array elements or root.
RawValue The full raw JSON text of this node's value.
RawValuePreview The raw JSON text of this node's value (truncated for large subtrees).
ValueKind The kind of JSON value (Object, Array, String, Number, True, False, Null, Undefined).
Viewer The parent viewer component, allowing programmatic access.

Depth

public required int Depth { get; init; }

The depth of this node in the tree (root = 0).

Path

public required string Path { get; init; }

The JSON Pointer path (RFC 6901) to this node, e.g. "/users/0/name".

PropertyName

public string? PropertyName { get; init; }

The property name if this node is an object member; null for array elements or root.

RawValue

public required string RawValue { get; init; }

The full raw JSON text of this node's value.

RawValuePreview

public required string RawValuePreview { get; init; }

The raw JSON text of this node's value (truncated for large subtrees).

ValueKind

public required JsonValueKind ValueKind { get; init; }

The kind of JSON value (Object, Array, String, Number, True, False, Null, Undefined).

Viewer

public required IMokaJsonViewer Viewer { get; init; }

The parent viewer component, allowing programmatic access.

View Source
/// <summary>
///     Contextual information about the node on which a context menu action was invoked.
/// </summary>
public sealed class MokaJsonNodeContext
{
    /// <summary>
    ///     The JSON Pointer path (RFC 6901) to this node, e.g. "/users/0/name".
    /// </summary>
    public required string Path { get; init; }
    /// <summary>
    ///     The depth of this node in the tree (root = 0).
    /// </summary>
    public required int Depth { get; init; }
    /// <summary>
    ///     The kind of JSON value (Object, Array, String, Number, True, False, Null, Undefined).
    /// </summary>
    public required JsonValueKind ValueKind { get; init; }
    /// <summary>
    ///     The property name if this node is an object member; <c>null</c> for array elements or root.
    /// </summary>
    public string? PropertyName { get; init; }
    /// <summary>
    ///     The full raw JSON text of this node's value.
    /// </summary>
    public required string RawValue { get; init; }
    /// <summary>
    ///     The raw JSON text of this node's value (truncated for large subtrees).
    /// </summary>
    public required string RawValuePreview { get; init; }
    /// <summary>
    ///     The parent viewer component, allowing programmatic access.
    /// </summary>
    public required IMokaJsonViewer Viewer { get; init; }
}
Was this page helpful?