-
Notifications
You must be signed in to change notification settings - Fork 496
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.BrowserCompatible处理map的Long类型key值不正确 #1401
Comments
您好, |
但是在fastjson 1.x使用SerializerFeature.BrowserCompatible是可以的 这块在2.x不兼容吗 |
Signed-off-by: Kraity <[email protected]>
* test: add testcase for #1401 Signed-off-by: Kraity <[email protected]> * perf: optimize serializing int and long value Signed-off-by: Kraity <[email protected]> --------- Signed-off-by: Kraity <[email protected]>
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.30-SNAPSHOT/ |
问题描述
添加JSONWriter.Feature.BrowserCompatible后输出的map的Long类型key值没有添加双引号,fastjson 1.x是可以正确处理的
#1350 提过这个问题然后说是修复了,但是我验证了还是不行的
环境信息
请填写以下信息:
重现步骤
期待的正确结果
{"map":{0:"Test"}}
{"map":{"0":"Test"}}
相关日志输出
{"map":{0:"Test"}}
{"map":{0:"Test"}}
The text was updated successfully, but these errors were encountered: