Better handle a json decode error