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时能识别多余的逗号 #1

Open
Hstb1230 opened this issue Mar 22, 2020 · 3 comments
Open

处理json时能识别多余的逗号 #1

Hstb1230 opened this issue Mar 22, 2020 · 3 comments

Comments

@Hstb1230
Copy link
Owner

数组中最后一个成员后面不该加逗号

@ScSofts
Copy link
Contributor

ScSofts commented Mar 26, 2020

这个是可以的。不是多余的

@Hstb1230
Copy link
Owner Author

@ScSofts
Error: 在第1行发生解析错误 :
[1,2,]

此处缺少'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['字符, 实际上是一个 ']'

@ScSofts
Copy link
Contributor

ScSofts commented Mar 30, 2020

?可能是JSON解析库的问题, 你报BUG吧

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

2 participants