-
Notifications
You must be signed in to change notification settings - Fork 4
fix(json): use std json instead of json-iterator to support omitzero #54
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
Conversation
Reviewer's Guide by SourceryThis pull request replaces the No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Here's the code health analysis summary for commits Analysis Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @cnlangzi - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a comment explaining why the json-iterator library was replaced with the standard library.
- It looks like you've replaced all instances of
json
withJson
, but you should defineJson
in a single place to avoid confusion.
Here's what I looked at during the review
- π’ General issues: all looks good
- π’ Security: all looks good
- π’ Testing: all looks good
- π’ Complexity: all looks good
- π’ Documentation: all looks good
Help me be more useful! Please click π or π on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #54 +/- ##
==========================================
+ Coverage 94.35% 94.36% +0.01%
==========================================
Files 55 56 +1
Lines 2284 2291 +7
==========================================
+ Hits 2155 2162 +7
Misses 96 96
Partials 33 33
Flags with carried forward coverage won't be shown. Click here to find out more. β View full report in Codecov by Sentry. |
Changed
Fixed
Added
Tests
Tasks to complete before merging PR:
make unit-test
to check for any regressions πmake lint
to check for any issuesSummary by Sourcery
This pull request replaces the
json-iterator
library with the standardencoding/json
package to enable theomitempty
option for JSON serialization. It also updates the code to use the standardencoding/json
package and removes thejson-iterator
dependency.Bug Fixes:
json-iterator
library with the standardencoding/json
package to enable theomitempty
option for JSON serialization.Enhancements:
encoding/json
package instead ofjson-iterator
.Chores:
json-iterator
dependency.