[#83] Don’t append in compile-json; overwrite

Fixes #83.
Nice catch, thanks!