fixed error in update_json.js