lib/appmap/util.rb in appmap-0.73.0 vs lib/appmap/util.rb in appmap-0.74.0

- old
+ new

@@ -169,10 +169,10 @@ # This is what Ruby Tempfile does; but we don't want the file to be unlinked. mode = File::RDWR | File::CREAT | File::EXCL ::Dir::Tmpname.create([ 'appmap_', '.json' ]) do |tmpname| tempfile = File.open(tmpname, mode) - tempfile.write(appmap) + tempfile.write(JSON.generate(appmap)) tempfile.close # Atomically move the tempfile into place. FileUtils.mv tempfile.path, filename end end