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 字段为 null 或者不存在的情况下,Gson 将会忽略这个字段的解析(而且还不会调用字段类型的 Serializer 进行处理),导致这个 null-safety 属性为 null。
估计得要为部分配置类写一个 Serializer 来处理这个问题。
至于为啥用 Gson 不用 moshi,我记得是因为 Moshi 对简单 Json 处理不友好,所以没使用 Moshi。 看 Gson 官方估计是不把这个当问题的,得麻烦一下咯。
关联 Pull Request #8
The text was updated successfully, but these errors were encountered:
fix(config): 添加两个序列化器来修复因 Gson 导致的解析错误.
0842805
由于 Gson 的解析方式不能正确处理 Kotlin 的 null-safety 属性, 因此添加两个 Serializer, 手动解析 Json 以避开这个问题. Close #9
LamGC
Successfully merging a pull request may close this issue.
目前测试出现一个新的问题,如果某个 Json 字段为 null 或者不存在的情况下,Gson 将会忽略这个字段的解析(而且还不会调用字段类型的 Serializer 进行处理),导致这个 null-safety 属性为 null。
估计得要为部分配置类写一个 Serializer 来处理这个问题。
至于为啥用 Gson 不用 moshi,我记得是因为 Moshi 对简单 Json 处理不友好,所以没使用 Moshi。
看 Gson 官方估计是不把这个当问题的,得麻烦一下咯。
关联 Pull Request #8
The text was updated successfully, but these errors were encountered: