Be more cautious about parsing JSON