JSON 序列化与反序列化 写接口、存配置、跟前端或别的服务交换数据,几乎都会碰到 JSON。 Go 标准库 encoding/json 负责两件事: 序列化(Marshal):把 Go 的值变成 J