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
1.2.83序列化$ref的字符串,用2.0.51进行反序列化时,报unclosed.str错误
Map<String, Object> innerMap = new HashMap<>(); innerMap.put("xxx", "xxxx"); innerMap.put("ttt", "tttt"); Map<String, Object> map = new LinkedHashMap<>(); map.put("key1~", innerMap); map.put("key2", innerMap);
String JSONStr = com.alibaba.fastjson.JSON.toJSONString(map); Map map2 = com.alibaba.fastjson2.JSON.parseObject(JSONStr, Map.class);
map2里的key2值不正确,为{"$ref":"$.key1~"}
期望map2里key2的值为 {"xxx":"xxxx","ttt":"tttt"}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
1.2.83序列化$ref的字符串,用2.0.51进行反序列化时,报unclosed.str错误
环境信息
重现步骤
Map<String, Object> innerMap = new HashMap<>();
innerMap.put("xxx", "xxxx");
innerMap.put("ttt", "tttt");
Map<String, Object> map = new LinkedHashMap<>();
map.put("key1~", innerMap);
map.put("key2", innerMap);
String JSONStr = com.alibaba.fastjson.JSON.toJSONString(map);
Map map2 = com.alibaba.fastjson2.JSON.parseObject(JSONStr, Map.class);
map2里的key2值不正确,为{"$ref":"$.key1~"}
期待的正确结果
期望map2里key2的值为 {"xxx":"xxxx","ttt":"tttt"}
The text was updated successfully, but these errors were encountered: