Create write_json.rb