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

Better support for JSON, parseYAML parses an array of numbers as arrays of strings #4

Closed
diegovdc opened this issue Nov 25, 2018 · 2 comments

Comments

@diegovdc
Copy link

I see that JSON.parse is simply a call to .parseYAML, however that method fails to type correctly things like an array of numbers.

i.e.

JSON.parse("[1,2,3]")[0].isNumber // false

Is there any chance of getting better support for this?

@diegovdc
Copy link
Author

I see you actually opened an issue at the Supercollider repo, with the exact same problem (supercollider/supercollider#1154 ). Too bad there is no solution yet.

@crucialfelix
Copy link
Owner

Yeah, it's not something that the API quark can fix. Of course I wouldn't want to implement my own JSON parser in supercollider either.

If you can send {"items": [1, 2, 3]} then you will be fine I think.

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