JSON deserialize of arrays is inefficient for memory. This is a minimal reproducer to show that it uses lots more memory than expected. Build each program separately, run gen and then you can run goread for the repro and some memory usage stats.