Commit graph

7 commits

Author SHA1 Message Date
世界
c80c8f907c
badjson: Add context marshaler/unmarshaler 2024-11-05 18:43:05 +08:00
世界
9571124cf4
badjson: Add disableAppend option 2024-06-22 20:07:31 +08:00
世界
ef00a1ec1e
Fix badjson merge 2024-02-22 17:27:13 +08:00
世界
56b953e091
Add nil checking to MergeJSON function in badjson
The MergeJSON function in the badjson package has been updated to handle cases where the source or destination raw JSON is nil. This introduces error checking that results in returning an error when both are nil and returning the non-nil JSON when only one is nil.
2023-12-24 08:03:41 +08:00
世界
4c4773fe54
badjson: Refactor and restructure Merge functions
The Merge function has been refactored for clearer code by splitting it into multiple functions: "Merge", "MergeFromSource", "MergeFromDestination" and "MergeFrom" in the badjson package. These new functions improve the handling of raw JSON during merge and with this refactoring, the responsibility of each function is more defined.
2023-12-24 08:03:41 +08:00
世界
05c71c99d1
badjson: Add Omitempty 2023-12-24 08:03:37 +08:00
世界
3336b50119
Migrate json wrapper and badjson to library 2023-12-24 08:03:35 +08:00