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

Implement the optional space parameter in JSON.stringify( value[, replacer [, space] ] ) #346

Closed
HalidOdat opened this issue Apr 26, 2020 · 0 comments · Fixed by #961
Closed
Labels
enhancement New feature or request
Milestone

Comments

@HalidOdat
Copy link
Member

HalidOdat commented Apr 26, 2020

The JSON.stringify(value[, replacer[, space]]) takes in three arguments.

The space argument is a String or Number object that's used to insert white space into the output JSON string for readability purposes.

If this is a Number, it indicates the number of space characters to use as white space; this number is capped at 10 (if it is greater, the value is just 10). Values less than 1 indicate that no space should be used.

If this is a String, the string (or the first 10 characters of the string, if it's longer than that) is used as white space. If this parameter is not provided (or is null), no white space is used.

More information:

@HalidOdat HalidOdat added the enhancement New feature or request label Apr 26, 2020
@Razican Razican added this to the v0.11.0 milestone Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants