Skip to content

fix: normalize number during serialization#359

Merged
stefan-gorules merged 1 commit into
masterfrom
fix/ser-normalize-number
Jun 2, 2025
Merged

fix: normalize number during serialization#359
stefan-gorules merged 1 commit into
masterfrom
fix/ser-normalize-number

Conversation

@stefan-gorules

@stefan-gorules stefan-gorules commented Jun 2, 2025

Copy link
Copy Markdown
Contributor

Number Normalization During Serialization

This PR fixes number serialization to normalize decimal values, ensuring clean JSON output by removing trailing zeros and unnecessary decimal points.

Changes

  • ✨ Numbers like 1.00 now serialize as 1 and 3.100 as 3.1

Impact

This change produces cleaner JSON output by automatically removing trailing zeros from decimal numbers, improving readability and reducing payload size for numeric data.

@stefan-gorules stefan-gorules merged commit c9d11f1 into master Jun 2, 2025
43 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