Skip to content
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

[QUESTION]关于ObjectNode的序列化问题 #921

Closed
memoryTravel opened this issue Nov 11, 2022 · 3 comments
Closed

[QUESTION]关于ObjectNode的序列化问题 #921

memoryTravel opened this issue Nov 11, 2022 · 3 comments
Labels
bug Something isn't working fixed question Further information is requested
Milestone

Comments

@memoryTravel
Copy link

之前一直是用fastjson1.0做序列化,因为今天项目引入了一个工作流demo,然后发现它的返回格式是ObjectNode,结果序列化后得到的不是一个json串,而是一个字符串,看了下1.0的代码,是对ObjectNode直接转成了String,这个问题我看之前也有人提过。
image
然后我将fastjson升级到2.0,然后做了以下配置
image
image
结果最后报了栈溢出
image
请问有没有比较好的解决方案?

@memoryTravel memoryTravel added the question Further information is requested label Nov 11, 2022
@wenshao wenshao added this to the 2.0.19 milestone Nov 11, 2022
@wenshao wenshao added the bug Something isn't working label Nov 11, 2022
@wenshao
Copy link
Member

wenshao commented Nov 11, 2022

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.19-SNAPSHOT/
问题已修复,请帮忙用2.0.19-SNAPSHOT验证,2.0.19版本预计在11月13日前发布。

@wenshao wenshao added the fixed label Nov 11, 2022
@memoryTravel
Copy link
Author

已验证,现在应该没问题了。

@wenshao
Copy link
Member

wenshao commented Nov 12, 2022

@wenshao wenshao closed this as completed Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants