json: error calling MarshalJSON for type *public.ReplyTemplateShopTreasureChests: invalid character 'I' after object key
Opened this issue · 0 comments
skOak commented
I'm using ffjson to speed up json marshal in my program, with go(version go1.7rc5),
but got the following error
error----------------------------
json: error calling MarshalJSON for type *public.ReplyTemplateShopTreasureChests: invalid character 'I' after object key]
with data below.
data----------------------------
&{ShopTreasureChests:[{Id:1 Type:1 Count:5 RewardType:4 RewardId:15160002} {Id:2 Type:1 Count:15 RewardType:4 RewardId:15160003} {Id:3 Type:1 Count:35 RewardType:4 RewardId:15160004} {Id:4 Type:1 Count:65 RewardType:4 RewardId:15160005} {Id:5 Type:1 Count:125 RewardType:4 RewardId:15160006} {Id:6 Type:2 Count:5 RewardType:4 RewardId:15160007} {Id:7 Type:2 Count:12 RewardType:4 RewardId:15160008} {Id:8 Type:2 Count:24 RewardType:4 RewardId:15160009} {Id:9 Type:2 Count:42 RewardType:4 RewardId:15160010} {Id:10 Type:2 Count:72 RewardType:4 RewardId:15160011}]}
Without ffjson, there is no errors here.
The attachement files are the struct definitions and ffjson generated contents.
public.zip