我调用了第三方 API,并得到了以下 JSON:
{"amount":1.0282E+7}
当我想转换它时,我得到了一个错误:
Blocjson:无法将号码 1.0282E+7 取消到 Go 结构字段“中东帐户到卡响应”类型 int64 的金额
我想在Go中将此JSON转换为以下结构:
type Response struct { Amount int64 `json:"amount"` }
紫衣仙女
拉风的咖菲猫
沧海一幻觉
相关分类