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
首先感谢分享代码,json中的bool类型无法解析正确,每次都是0,不管数据是true还是false。
The text was updated successfully, but these errors were encountered:
确实是代码上有错误,您可以先修改使用
cson.c第298行
cson.c
case CSON_TYPE_BOOL: *(char *)((int)obj + model[i].offset) = (char)csonDecodeNumber(json, model[i].key); break;
修改为
case CSON_TYPE_BOOL: *(char *)((int)obj + model[i].offset) = (char)csonDecodeBool(json, model[i].key); break;
Sorry, something went wrong.
.h里cson类型也得改才能生效
No branches or pull requests
首先感谢分享代码,json中的bool类型无法解析正确,每次都是0,不管数据是true还是false。
The text was updated successfully, but these errors were encountered: