Skip to content
New issue

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

com.alibaba.fastjson.JSONException: unclosed string : ^Z #273

Closed
drluorose opened this issue Jan 12, 2015 · 12 comments
Closed

com.alibaba.fastjson.JSONException: unclosed string : ^Z #273

drluorose opened this issue Jan 12, 2015 · 12 comments
Milestone

Comments

@drluorose
Copy link

com.alibaba.fastjson.JSONException: unclosed string : ^Z

@yakolee
Copy link
Contributor

yakolee commented Jan 12, 2015

使用哪个版本?如何重现?能否提供完整的信息?

@sandaobusi
Copy link

我也复现了,com.alibaba.fastjson.JSONException: unclosed string : ^Z
1.2.6版本,看起来像特殊字符

@sandaobusi
Copy link

复现方法:vi模式按住ctrl,按v z就可以打出来这个字符,搜了下是一个文件结束符,json的字段出现这个字符反解析失败

@ChetWang
Copy link

用最新的fastjson 1.2.4仍有这个问题存在

@wenshao
Copy link
Member

wenshao commented Apr 12, 2016

能否帮忙提供一个重现问题的testcase,要求java代码

@ChetWang
Copy link

我碰到问题时,都是个别客户端传上来的json数据引起的,最后带一个^Z的字符。从日志中复制粘贴出来都是正常的。

@wenshao
Copy link
Member

wenshao commented Apr 13, 2016

已经解决,1.2.9 & 1.1.49.android版本中都会修复这个问题。

@wenshao wenshao closed this as completed Apr 13, 2016
@wenshao wenshao added this to the 1.2.9 milestone Apr 13, 2016
@msimw
Copy link

msimw commented Oct 23, 2017

Exception in thread "main" com.alibaba.fastjson.JSONException: unclosed string : A

@warnerzz
Copy link

用了1.2.9,还是出现问题。
com.alibaba.fastjson.JSONException: unclosed string : ^Z

1 similar comment
@warnerzz
Copy link

用了1.2.9,还是出现问题。
com.alibaba.fastjson.JSONException: unclosed string : ^Z

@musktime
Copy link

com.alibaba.fastjson.JSONException: unclosed.str

字符串长度为96767,解析时会失败

@qinpeng-qp
Copy link

com.alibaba.fastjson.JSONException: unclosed string : ^Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants