Struct JsonDecoder<T>
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
sourceReadOnlySpan<byte>contextCodecContext
Returns
- T