Fixes the JSON and updates the JSON table accordingly.