An alternative generic ordered map in Go with de/serializing from/to JSON.
See the example code.
For testing, deserialize JSON and then serialize it while preserving the order.
$ ./bin/cli -data '{"s":"test","i":3,"a":[{"f":3.14},{"b":true}]}'
{
"s": "test",
"i": 3,
"a": [
{
"f": 3.14
},
{
"b": true
}
]
}