Actually handle json exception properly.