use a standard error to report json error