Posted in Go语言基础和工具链Go map[string]Person{}转JSON为空对象{}?不是bug,是Go 1.22新增的struct字段对齐检查与json encoder字段可见性规则变更所致 第一章:Go map[strin … Go map[string]Person{}转JSON为空对象{}?不是bug,是Go 1.22新增的struct字段对齐检查与json encoder字段可见性规则变更所致Read more by 架构思考者|2026年1月27日|1.22新特性, Go动态加载, Map转JSON崩溃, JSON空对象空数组, struct字段对齐检查, JSON编码器可见性