3 ms·Or, you can write it from within Ruby: open("out.json", "w") {|f| f.puts JSON.dump(showings) }by cheald 12y agoOr, you can write it from within Ruby: open("out.json", "w") {|f| f.puts JSON.dump(showings) }tom-lord 12y agof << JSON.dump(showings) avoids adding any new lines (not that it really matters in the case of JSON)cheald 12y agoDoh, yes. `print` rather than `puts` is also acceptable.