-
Notifications
You must be signed in to change notification settings - Fork 495
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] prettyFormat=true时,序列化和反序列化Map异常 #577
Comments
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson/2.0.10-SNAPSHOT/ |
wenshao
added a commit
that referenced
this issue
Jul 22, 2022
上面的测试用例运行是没问题,但输出的json格式依然是不正确的。 2.0.10 输出的结果是如下: {
"offsetTable":{
{
"brokerName":"broker-a",
"queueId":1,
"topic":"topic_1"
}:124{
"brokerName":"broker-a",
"queueId":0,
"topic":"topic_1"
}:123
}
} 符合JSON格式的结果如下: 两个KV之间应该用逗号隔开 {
"offsetTable":{
{
"brokerName":"broker-a",
"queueId":1,
"topic":"topic_1"
}:124,
{
"brokerName":"broker-a",
"queueId":0,
"topic":"topic_1"
}:123
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
prettyFormat=true时,序列化和反序列化Map异常
环境信息
请填写以下信息:
重现步骤
问题的测试代码:
相关日志输出
控制台输出:
其他信息
如果把prettyFormat改为false则会正常没问题
The text was updated successfully, but these errors were encountered: