Skip to content

Pass/Define space attribute #8

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

Closed
avocadowastaken opened this issue Sep 2, 2015 · 1 comment
Closed

Pass/Define space attribute #8

avocadowastaken opened this issue Sep 2, 2015 · 1 comment

Comments

@avocadowastaken
Copy link

It's impossible to change space value in JSON.stringify method,

It's just hardcoded

var SPACE = 2;

module.exports = function serialize(obj) {
    /* ... */
    str = JSON.stringify(obj, function (key, value) {
    /* ... */
    }, SPACE);
@ericf
Copy link
Collaborator

ericf commented Sep 2, 2015

We're having that discussion in #7. Feel free to add your comments to that thread as to why you want this feature. Thanks!

@ericf ericf added the duplicate label Sep 2, 2015
@ericf ericf closed this as completed Sep 2, 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

No branches or pull requests

2 participants