JSON: JSON, encoding/json, serde_json, nlohmann/json
#encoding/json maps JSON to Go values: Marshal encodes, Unmarshal decodes into a pointer, and json.NewDecoder and NewEncoder stream from an io.Reader or to an io.Writer (an HTTP body, a file). Only exported (capitalized) struct fields are included, and struct tags set the JSON names and options such as omitempty (and omitzero, Go 1.24+, which also works for structs and time.Time). Unknown fields are ignored unless the decoder calls DisallowUnknownFields.
Complete program
Complete program. Standard library: ships with Go, no install.
Most used: json.Marshal, json.Unmarshal, json.NewDecoder(r.Body).Decode, json.NewEncoder(w).Encode, `json:"name,omitempty"` tags, json.RawMessage.