How do you get the script to save the json file?
open("out.json", "w") {|f| f.puts JSON.dump(showings) } f << JSON.dump(showings)
avoids adding any new lines (not that it really matters in the case of JSON)$ ruby scraper.rb > showings.json