Skip to content

Use proper indentation for JSON bodies in Javascript and Nodejs codegens #431

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 2 commits into from
Feb 26, 2021

Conversation

webholik
Copy link
Contributor

Before:

var data = '{\n    "Hello": "world",\n    "boolean": true,\n    "array": [1,2,3]\n}';

After:

var data = JSON.stringify({
    "Hello": "world",
    "boolean": true,
    "array": [
        1,
        2,
        3
    ]
});

@webholik webholik merged commit 1764b27 into develop Feb 26, 2021
@webholik webholik deleted the fix/json-indentation branch February 26, 2021 10:38
@NathBabs
Copy link

If this has been merged, why am I still seeing it today ?

@Avdhesh-Varshney
Copy link

I'm also facing the same issue while writing my API documentation

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.

4 participants