-
Notifications
You must be signed in to change notification settings - Fork 547
Closed
Labels
Milestone
Description
问题描述
1.2.83序列化$ref的字符串,用2.0.51进行反序列化时,报unclosed.str错误
环境信息
- OS信息: windows
- JDK信息:jdk 1.8.0_431
- 版本信息:Fastjson2 2.0.51
重现步骤
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"}