Skip to content

toString(): Print keys in JSON #391

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

Merged
merged 1 commit into from
Mar 16, 2015

Conversation

wmertens
Copy link
Contributor

This way, it's obvious when numeric keys are being mixed with string
keys, like when importing from JSON and inserting by key.

This way, it's obvious when numeric keys are being mixed with string
keys, like when importing from JSON and inserting by key.
@leebyron
Copy link
Collaborator

Thanks, this makes tons of sense. I wholey agree that being explicit about key types when stringed helps explain the difference from objects, and naked strings look far too much like property names, which they are not.

leebyron added a commit that referenced this pull request Mar 16, 2015
toString(): Print keys in JSON
@leebyron leebyron merged commit 1299a7c into immutable-js:master Mar 16, 2015
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

Successfully merging this pull request may close these issues.

2 participants