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

what mean Uncaught SyntaxError: Unexpected token o ? #8

Open
caihuiji opened this issue Jul 14, 2015 · 3 comments
Open

what mean Uncaught SyntaxError: Unexpected token o ? #8

caihuiji opened this issue Jul 14, 2015 · 3 comments
Labels

Comments

@caihuiji
Copy link
Member

i find "Uncaught SyntaxError: Unexpected token o " in my error list

image

@caihuiji
Copy link
Member Author

the JSON.parse({}) will throw this exception
image

so , i think was some of data is empty

@loskael
Copy link
Member

loskael commented Jul 15, 2015

image

并不是 数据为空的问题, 应该说 JSON.parse 的参数是一个 string, 非 string 会调用 toString 强制转成 string 来处理
image

@caihuiji
Copy link
Member Author

确实。 我们的业务代码里面没有 JSON.parse。
应该是业务代码在获得数据的时候,某些情况下数据转换失败了

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

No branches or pull requests

2 participants