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

Fix JSON indentation #1158

Merged
merged 2 commits into from May 4, 2022
Merged

Fix JSON indentation #1158

merged 2 commits into from May 4, 2022

Conversation

resnickj
Copy link
Contributor

@resnickj resnickj commented May 4, 2022

  • fix indentation bug in JsonSerializer
  • add regression test

* fix indentation bug in JsonSerializer
* add regression test

var result = engine.Evaluate("JSON.stringify(x, null, 2);").AsString();

_outputHelper.WriteLine(result);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not needed? Only adds unnecessary output to CI run

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will remove

* remove test output
Copy link
Collaborator

@lahma lahma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you for this!

@lahma lahma merged commit 28e2996 into sebastienros:main May 4, 2022
@resnickj resnickj deleted the json-indentation branch May 4, 2022 19:34
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.

None yet

2 participants