forcing an int field to be encoded as a quoted string.
Go Walkthrough: encoding/json package
Ben Johnson

This is extremely important for 64-bit values! Because JavaScript doesn’t have different integer and floating point types, values above ~53 bits start to lose integer precision. If you could potentially be interacting with JS code, make sure this is a string, but it’s a good idea in any case.

Show your support

Clapping shows how much you appreciated Joe Shaw’s story.