JsonValueValidation
Namespace: E2E.Internal
public static class JsonValueValidationThe one JSON-safety walker (upstream’s validateJsonValue in internal/json-value.ts). Anything crossing a boundary that demands
plain JSON validates here, so cycle detection, plain-container checks, and secret rejection cannot drift between call sites. .NET-only
holder name: C# has no free functions.
Inheritance: object
Methods
Section titled “Methods”ValidateJsonValue(object?, string, JsonValueRules?)
Section titled “ValidateJsonValue(object?, string, JsonValueRules?)”public static void ValidateJsonValue(object? value, string label, JsonValueRules? rules = null)Validates that <code class=“paramref”>value</code> is JSON-safe, throwing a labeled error otherwise: a non-finite number, a cycle, a container that is not a plain dictionary or list, a value of any other type, or a Secret.
Parameters
| Name | Type | Description |
|---|---|---|
value |
object | |
label |
string | |
rules |
JsonValueRules |