Class Sealed
public sealed class JsonChangeEventArgs : System.EventArgs

Namespace: Moka.Blazor.Json.Models

Event arguments raised when the JSON content is modified in edit mode.

Inheritance

Inherits from: System.EventArgs

Properties

NameDescription
ChangeType The type of change that occurred.
FullJson The full updated JSON document as a string.
NewValue The new raw JSON value (after the change), or null for deletions.
OldValue The previous raw JSON value (before the change), or null for additions.
Path The JSON Pointer path (RFC 6901) of the modified node.

ChangeType

public required JsonChangeType ChangeType { get; init; }

The type of change that occurred.

FullJson

public required string FullJson { get; init; }

The full updated JSON document as a string.

NewValue

public string? NewValue { get; init; }

The new raw JSON value (after the change), or null for deletions.

OldValue

public string? OldValue { get; init; }

The previous raw JSON value (before the change), or null for additions.

Path

public required string Path { get; init; }

The JSON Pointer path (RFC 6901) of the modified node.

Type Relationships
classDiagram
    style JsonChangeEventArgs fill:#f9f,stroke:#333,stroke-width:2px
    JsonChangeEventArgs --|> EventArgs : inherits
View Source
/// <summary>
///     Event arguments raised when the JSON content is modified in edit mode.
/// </summary>
public sealed class JsonChangeEventArgs : EventArgs
{
    /// <summary>
    ///     The JSON Pointer path (RFC 6901) of the modified node.
    /// </summary>
    public required string Path { get; init; }
    /// <summary>
    ///     The type of change that occurred.
    /// </summary>
    public required JsonChangeType ChangeType { get; init; }
    /// <summary>
    ///     The previous raw JSON value (before the change), or <c>null</c> for additions.
    /// </summary>
    public string? OldValue { get; init; }
    /// <summary>
    ///     The new raw JSON value (after the change), or <c>null</c> for deletions.
    /// </summary>
    public string? NewValue { get; init; }
    /// <summary>
    ///     The full updated JSON document as a string.
    /// </summary>
    public required string FullJson { get; init; }
}
Was this page helpful?