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
我有下面的代码:
data class TestWrapper( val uris: Collection<Test>? )
然后使用 JSON.registerIfAbsent 给 Test 类注册一个 Reader。
JSON.registerIfAbsent
Test
此时使用 JSON.parseObject("xxxxx", DocContentInfo::class.java) 解析 json 的时候,fastjson2 仍然会使用默认的 Reader 去创建 Test 的对象,而不是使用我注册的。
JSON.parseObject("xxxxx", DocContentInfo::class.java)
请填写以下信息:
应该使用我自己注册的 Reader 去创建 Test 对象。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
我有下面的代码:
然后使用
JSON.registerIfAbsent
给Test
类注册一个 Reader。此时使用
JSON.parseObject("xxxxx", DocContentInfo::class.java)
解析 json 的时候,fastjson2 仍然会使用默认的 Reader 去创建Test
的对象,而不是使用我注册的。环境信息
请填写以下信息:
期待的正确结果
应该使用我自己注册的 Reader 去创建
Test
对象。The text was updated successfully, but these errors were encountered: