edited check_json.rb