We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fastjson2版本下,数据类型为List<Hashtable<String, String>>解析json串结果为空对象,换成List<HashMap<String, String>>就没有问题,同样的json串在fastjson下解析没有问题。
请填写以下信息:
模型: public class DictionaryModule implements Serializable { private static final long serialVersionUID = -1L; private String dictKey; private String tableName; private Hashtable<String, String> queryColumns; private Hashtable<String, List<HashMap<String, Object>>> params; private List<Hashtable<String, String>> orders; ... } json串: '{"dictKey":"sys_post","tableName":"sys_post",' + '"queryColumns":{"code":"post_id","sort":"post_sort","label":"post_name","value":"post_id"},' + '"params":{"orCondition":[{"column":"status","operator":"<>","value":1},{"column":"status","operator":"is","value":null}]},' + '"orders":[{"column":"post_sort","sequences":"asc"},{"column":"create_time","sequences":"desc"}]}' 解析结果:orders属性只有两个空对象,其它属性没有问题;orders类型换成List<HashMap<String, String>>就没有问题,同样的json串在fastjson下解析没有问题。
The text was updated successfully, but these errors were encountered:
fix: missing matching Hashtable for alibaba#1707
Hashtable
84115c6
Signed-off-by: Kraity <kraty@krait.cn>
fix: missing matching Hashtable for #1707
43de3af
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.39-SNAPSHOT/ 问题已修复,请帮忙用2.0.39-SNAPSHOT版本验证,2.0.39版本预计在8月27日前发布
Sorry, something went wrong.
https://github.com/alibaba/fastjson2/releases/tag/2.0.39 请用新版本
No branches or pull requests
问题描述
fastjson2版本下,数据类型为List<Hashtable<String, String>>解析json串结果为空对象,换成List<HashMap<String, String>>就没有问题,同样的json串在fastjson下解析没有问题。
环境信息
请填写以下信息:
重现步骤
模型:
public class DictionaryModule implements Serializable {
private static final long serialVersionUID = -1L;
private String dictKey;
private String tableName;
private Hashtable<String, String> queryColumns;
private Hashtable<String, List<HashMap<String, Object>>> params;
private List<Hashtable<String, String>> orders;
...
}
json串:
'{"dictKey":"sys_post","tableName":"sys_post",' +
'"queryColumns":{"code":"post_id","sort":"post_sort","label":"post_name","value":"post_id"},' +
'"params":{"orCondition":[{"column":"status","operator":"<>","value":1},{"column":"status","operator":"is","value":null}]},' +
'"orders":[{"column":"post_sort","sequences":"asc"},{"column":"create_time","sequences":"desc"}]}'
解析结果:orders属性只有两个空对象,其它属性没有问题;orders类型换成List<HashMap<String, String>>就没有问题,同样的json串在fastjson下解析没有问题。
The text was updated successfully, but these errors were encountered: