public sealed class StructuredPayload Contains a schema-identified, strictly validated UTF-8 JSON payload.
Properties
SchemaId
public string SchemaId { get; } Gets the profile-owned schema identity of the payload.
Utf8Json
public ReadOnlyMemory<byte> Utf8Json { get; } Gets the validated UTF-8 JSON bytes, copied from the input to StructuredPayload.Parse.
Methods
Deserialize
public T? Deserialize<T>(JsonTypeInfo<T> typeInfo) Deserializes through explicit metadata suitable for trimming and NativeAOT.
Parse
public static StructuredPayload Parse(string schemaId, ReadOnlySpan<byte> utf8Json, int maximumBytes = 1048576, int maximumDepth = 64) Validates and copies a structured JSON payload.