Add error catching to the json-dry parser