Simplified JSON Handling in Go

1 · Alan Storm · Sept. 18, 2021, 2:20 p.m.
One of my first Go projects involved taking a bunch of JSON test fixtures and feeding them to the APIs we’d built. Another team created these fixtures in order to provide expected inputs and outputs to an API with implementations across a number of different languages. JSON is always tricky in a typed language — it’s a format with strings, numbers, dictionaries, and arrays. If you’re coming from a language like javascript, python, ruby, or PHP a big selling point of JSON is the ability to parse ...