Go · Function
json.Unmarshal
json.Unmarshal parses JSON bytes and stores the result in a Go value. Pass a non-nil pointer to the destination and check the returned error.
Last updated
Syntax
func Unmarshal(data []byte, v any) errorIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
MarshalDecoderDecoder.DecodeDecoder.UseNumberRawMessageUnmarshalerUnmarshalTypeError