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

特殊字符json反序列化报错 #928

Closed
mylikethranduil opened this issue Apr 18, 2022 · 4 comments
Closed

特殊字符json反序列化报错 #928

mylikethranduil opened this issue Apr 18, 2022 · 4 comments

Comments

@mylikethranduil
Copy link

版本号:

1.5.0-beta

问题描述:

业务数据包含字符【 ' 】,json反序列化报错
除了英文单引号,还存在json反序列化报错情况。

错误日志&截图:

com.alibaba.fastjson.JSONException: syntax error, position at 5761749, name text
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:645) ~[fastjson-1.2.78.jar:na]
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:581) ~[fastjson-1.2.78.jar:na]

重现步骤:

友情提示(为了提高issue处理效率):

  • 积木报表是一款免费报表产品,功能免费源码不开放;
  • 未按格式要求发帖,会被直接删掉;
  • 请针对问题提供报表设计SQL脚本或在官网制作报表示例并提供ID;
  • 针对不好重现的问题,请录制操作视频或详细的重现步骤;
@mylikethranduil
Copy link
Author

采取API获取数据集, 并且使用fastjson JSON.parseObject()解析json数据,并没有报错。

@mylikethranduil
Copy link
Author

导出Excel表格时报的错,这个bug请尽快修复吧,太影响使用了

@lvdandan16
Copy link
Collaborator

收录 ws

@1298191366
Copy link

1298191366 commented Apr 29, 2022

如果是分组的字段有双引号报错,已修复,待新版本发布,单引号未重现,请导出报表配置和测试数据

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

3 participants