simplify exception usage only json-invalid is thrown