Updating json data and permissions