Update write_json.rb