I have a json
that contains a field with a bigint
{"NETWORK_ID": 6000370005980500000071}
The format I have before marshaling is map[string]interface{}
When I marshal it and print to console everything seems to be fine but this field actually creates problems due to its size in other mediums so I want to serialize it as a string.
UseNumber()
seems to be for this purpose but it's only for decoding I think.
Is there any way that I can detect this kind of bigint
number and make them serialize as strings?