-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
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
[BUG] 添加 JSONWriter.Feature.WriteClassName 特性后,long 值序列化后会有 "L" 字符。(算问题?还是有什么开关,可以关掉?) #2967
Comments
这是特性,设计如此。 你设置了 附加一个 L 就是便于 |
@CodePlayer 希望再来个特性,能控制它的关闭:)。。。有些场景下,需要与其它框架的互通性 |
如果要与其他框架互通,那你就不应该使用 感觉你考虑的实现思路有些误入歧途。如果要实现不同序列化框架之间的互通:
|
@CodePlayer 非你所想。。。大多 json 框架,都有 WriteClassName 类似的特性,都可以有 |
你可以说说大多数JSON框架是哪些呢 ? 也就是 JSON框架 默认并不是互通的,本质上就是,如何保存序列化对象自身的类型信息,在 JSON 框架领域并没有一个统一的标准,不然大家都会遵循规范统一实现了。 当然,结合框架的自定义功能设置,我们还是可以将不同框架的 类型 属性名称 调整为相同的。 |
复现代码:
The text was updated successfully, but these errors were encountered: