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

JSON formatting support using spaces for indentation #3225

Merged
merged 11 commits into from
Dec 31, 2024
Merged

Conversation

wenshao
Copy link
Member

@wenshao wenshao commented Dec 30, 2024

Added a new JSONWriter.Feature PrettyFormatWithSpace to format the output using spaces.

@codecov-commenter
Copy link

codecov-commenter commented Dec 30, 2024

Codecov Report

Attention: Patch coverage is 98.72881% with 3 lines in your changes missing coverage. Please review.

Project coverage is 74.40%. Comparing base (9d3e91c) to head (a34cace).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rc/main/java/com/alibaba/fastjson2/JSONWriter.java 97.33% 1 Missing and 1 partial ⚠️
.../alibaba/fastjson2/writer/ObjectWriterImplMap.java 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3225      +/-   ##
============================================
+ Coverage     74.38%   74.40%   +0.02%     
- Complexity    23665    23683      +18     
============================================
  Files           668      668              
  Lines         92089    92143      +54     
  Branches      20577    20583       +6     
============================================
+ Hits          68498    68563      +65     
+ Misses        15233    15220      -13     
- Partials       8358     8360       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wenshao wenshao merged commit 0e6bbd4 into main Dec 31, 2024
28 checks passed
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.

2 participants