Json reader and writer uses Dir.mktmpdir