watch for json parse errors