We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
是否考虑在decode出错时增加 Error Enum 类型。来表示诸如 "值类型错误/ErrorValueType",“缺少必须的域/MissingmandatoryFiled”等解析错误?
或者将rapidxml/rapidJson 解析时的返回值透传回来,类似如下
bool isSuccess = false; try { isSuccess = xpack::json::decode(content.toStdString(), j); } catch (const std::exception& e) { LOGERROR("decode error "); } return isSuccess;
The text was updated successfully, but these errors were encountered:
同理,字符串类型的jasonvalue “0” 与数字类型的jasonvalue 0, 经常被混用,很容易造成异常。 如果能处理自动转换,使用默认数值,不要崩溃,就会更加适应生产环境。
Sorry, something went wrong.
No branches or pull requests
是否考虑在decode出错时增加 Error Enum 类型。来表示诸如 "值类型错误/ErrorValueType",“缺少必须的域/MissingmandatoryFiled”等解析错误?
或者将rapidxml/rapidJson 解析时的返回值透传回来,类似如下
The text was updated successfully, but these errors were encountered: