catching value errors when decoding json