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

I can't parse out the string like "{a:5}" #109

Closed
yuyedaidao opened this issue Dec 10, 2014 · 2 comments
Closed

I can't parse out the string like "{a:5}" #109

yuyedaidao opened this issue Dec 10, 2014 · 2 comments

Comments

@yuyedaidao
Copy link

let j = JSON("{a:2,b:3}")
println("\(j[0].intValue)")//0
@brigand
Copy link

brigand commented Dec 10, 2014

That's invalid JSON. Keys must be quoted, e.g. {"a":2,"b":3}

@LukeTangPL
Copy link
Member

@brigand Thanks.

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