Catch JSON parsing errors in v4 API