Catching JSON parse error and updating documentation