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

无法解析具有注释的json字符串 #439

Closed
Helen-Guo opened this issue Oct 28, 2015 · 2 comments
Closed

无法解析具有注释的json字符串 #439

Helen-Guo opened this issue Oct 28, 2015 · 2 comments

Comments

@Helen-Guo
Copy link

已经添加了Feature.AllowComment属性,但还是报错
Caused by: com.alibaba.fastjson.JSONException: illegal identifier : /
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.parser.JSONLexerBase.scanSymbolUnQuoted(JSONLexerBase.java:847)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:267)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1236)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1205)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.parseExtra(JavaBeanDeserializer.java:435)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.parseField(JavaBeanDeserializer.java:413)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:330)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:135)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:551)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.JSON.parseObject(JSON.java:251)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.JSON.parseObject(JSON.java:227)
10-28 15:49:26.506 12675-12675/com.kuaila.lockscreen E/AndroidRuntime: at com.alibaba.fastjson.JSON.parseObject(JSON.java:186)

@wenshao wenshao closed this as completed Apr 13, 2016
@wenshao wenshao reopened this Apr 13, 2016
@wenshao
Copy link
Member

wenshao commented Apr 13, 2016

请提供能重现问题的testcase

wenshao added a commit that referenced this issue Apr 15, 2016
@wenshao wenshao added this to the 1.1.49.android milestone Apr 15, 2016
wenshao added a commit that referenced this issue Apr 15, 2016
@wenshao
Copy link
Member

wenshao commented Apr 15, 2016

1.1.49.android将会修复这个问题

@wenshao wenshao closed this as completed Apr 15, 2016
wenshao added a commit that referenced this issue Jul 17, 2019
asa1997 pushed a commit to Be-Secure/fastjson that referenced this issue Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants