working repairs into the json