Better handle rejected promises in JSON utils.