write newjson not oldjson

cc @sh1mmer @kumikoda