Deal with error json for users