Is there a way in golang to decode any json value to a string. Similar to json.Number why isn't there a json.String?
For example, the following could be decoded as indicated
{"number": 123} => "123"
{"string": "123"} => "123"
{"float" : 123.45} => "123.45"
{"bool" : true} => "true"
{"empty" : ""} => ""
{"null" : null} => ""
json.Numbertype is only used if you useDecoder.UseNumber(), I think. Otherwise it is just stored asfloat64and the problem is that huge numbers can't properly stored this way (that's why thejson.Numbertype exists). See attilaolah.eu/2013/11/29/json-decoding-in-go/…