Table of Contents

Struct JsonDecoder<T>

Namespace
Shard.Codecs.Json
Assembly
Shard.Codecs.dll

Decodes and validates one complete JSON value.

public readonly struct JsonDecoder<T>

Type Parameters

T
Inherited Members

Remarks

Root decodes consume one contiguous UTF-8 value and run recursive validation after construction.

Methods

Decode(ReadOnlySpan<byte>, CodecContext)

Reads exactly one UTF-8 JSON value and validates the completed value before returning it.

public T Decode(ReadOnlySpan<byte> source, CodecContext context)

Parameters

source ReadOnlySpan<byte>
context CodecContext

Returns

T