今天做小程序,获取小程序openId,http返回的json是 {\"openId\":\"xxxxxxxxxxxx\" } 这种情况直接使用 json.Unmarshal() 不能进行解析,可以使用easyjson或者自己根据返回从新封装。