我有一个 json 字符串数据(来自第三方 API)。我无法在 golang 中解码 json 字符串数据。
请帮忙。
JSON 字符串 =
{
"data" : {
"additional-30": {
"id_sales_rule_set": 255626,
"voucher_code": "PR35ZR5J5",
"from_date": "2015-06-16 16:19:22",
"to_date": "2018-09-28 23:59:59",
"conditions_ruleset": {
"subTotal": 0,
"category": {},
"customer": "0",
"paymentMethod": null,
"capOnDiscount": null,
"skuExclude": null,
"discountedItem": 0,
"discounted": 1500,
"taggedItem": null,
"segmentedVoucher": null,
"bundle": null,
"brand": null,
"mobileVoucher": null,
"itemAttribute": {}
},
"discount_type": "fixed",
"discount_percentage": null,
"discount_amount_default": 500
},
"abcd": {
"id_sales_rule_set": 255626,
"voucher_code": "PR35ZR5J5",
"from_date": "2015-06-16 16:19:22",
"to_date": "2018-09-28 23:59:59",
"conditions_ruleset": {
"subTotal": 0,
"category": {},
"customer": "0",
"paymentMethod": null,
}
}
}
慕少森
相关分类