encoding/json from stdlib makes a lot of allocations (~30) due its use of reflection, which is notoriously slow.