You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
我们在使用FastJson时发现自省功能有个这样的限制:@type只能放在“{”后面的第一位,如:
{“@type":"com.xxx.Foo", "name": "Foo"} 反序列化后得到的是 Foo对象,但交换一下顺序,改为:
{ "name": "Foo", “@type":"com.xxx.Foo"}反序列化后得到的是 Foo对象,但Foo里面的属性没有值。
期望是:@type可以放在任何位置都能到正确的对象。
有这个要求主要是:Object C++里产生的json无法保证@type在第一位
经过跟踪代码,发现DefaultJSONParser.java的300行实例化后,没有把之前的参数传入的(Map object)里的值设置回
The text was updated successfully, but these errors were encountered: