Update to catch bad JSON error from server.