read in json dump Having a Dump of DataSample in json. (maybe replaceing backslashes :s/\\//g (vim)) file = File.read('my_data.json') json = JSON.parse(file) json.each { |entry| DataSample.new.form_json(entry.to_json.to_s).save }