Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

fastjson 1.2.8版本及以后,对于序列化时候写入的@type信息,在反序列化的时候已经不会默认转换为type对应的类型了 #710

Closed
Viyond opened this issue Jul 5, 2016 · 3 comments
Milestone

Comments

@Viyond
Copy link

Viyond commented Jul 5, 2016

如题,关于这个问题,我在#585 之前的issue中已经反馈过,我看@wenshao 评论说在1.2.12版本中已经fix,但是我试了下,仍然没有解决,对于自定义的@type名称,反序列化时,并不能自动识别并转换为@type(自定义名称)要求的类型,盼@wenshao看一下,非常感谢!!

@wenshao
Copy link
Member

wenshao commented Jul 6, 2016

能够提供重现问题的testcase么?

@wenshao wenshao added this to the 1.2.14 milestone Jul 6, 2016
@Viyond
Copy link
Author

Viyond commented Jul 7, 2016

关于重现的case请看链接:#585

@wenshao
Copy link
Member

wenshao commented Jul 17, 2016

问题已经修复,使用方法需要调用新的方法,如下:

JSON.setDefaultTypeKey("mySpace");

@wenshao wenshao closed this as completed Jul 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants