Skip to content

support for indentation? #10

@sandgupta23

Description

@sandgupta23

Standerted JSON.stringify allows an argument for \t and \n for indentation purposes as follows:


JSON.stringify({ uno: 1, dos: 2 }, null, '\t');
// returns the string:
// '{
//     "uno": 1,
//     "dos": 2
// }'

JSON.prune supports it as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions