Class Sealed
public sealed class JsonSearchOptions

Namespace: Moka.Blazor.Json.Abstractions

Options for controlling JSON search behavior.

Properties

NameDescription
CaseSensitive Whether to perform case-sensitive matching. Default is false.
SearchKeys Whether to search property keys. Default is true.
SearchValues Whether to search values. Default is true.
UseJsonPath Whether to use JSON Path query syntax (e.g., $.users[*].name). Default is false.
UseRegex Whether the query should be interpreted as a regular expression. Default is false.

CaseSensitive

public bool CaseSensitive { get; init; }

Whether to perform case-sensitive matching. Default is false.

SearchKeys

public bool SearchKeys { get; init; }

Whether to search property keys. Default is true.

SearchValues

public bool SearchValues { get; init; }

Whether to search values. Default is true.

UseJsonPath

public bool UseJsonPath { get; init; }

Whether to use JSON Path query syntax (e.g., $.users[*].name). Default is false.

UseRegex

public bool UseRegex { get; init; }

Whether the query should be interpreted as a regular expression. Default is false.

View Source
/// <summary>
///     Options for controlling JSON search behavior.
/// </summary>
public sealed class JsonSearchOptions
{
    /// <summary>
    ///     Whether to perform case-sensitive matching. Default is <c>false</c>.
    /// </summary>
    public bool CaseSensitive { get; init; }
    /// <summary>
    ///     Whether the query should be interpreted as a regular expression. Default is <c>false</c>.
    /// </summary>
    public bool UseRegex { get; init; }
    /// <summary>
    ///     Whether to search property keys. Default is <c>true</c>.
    /// </summary>
    public bool SearchKeys { get; init; } = true;
    /// <summary>
    ///     Whether to search values. Default is <c>true</c>.
    /// </summary>
    public bool SearchValues { get; init; } = true;
    /// <summary>
    ///     Whether to use JSON Path query syntax (e.g., $.users[*].name). Default is <c>false</c>.
    /// </summary>
    public bool UseJsonPath { get; init; }
}
Was this page helpful?