need to use ValueError to account for different json libraries throwing different exceptions