Commit graph

26 commits

Author SHA1 Message Date
世界
2238a05966
Fix merge objects 2025-03-16 10:23:29 +08:00
世界
be9840c70f
listable: Fix incorrect unmarshaling of null to []T{null} 2025-01-09 15:57:12 +08:00
世界
478265cd45
badoption: Finish netip options 2024-12-01 14:33:23 +08:00
世界
fdca9b3f8e
badjson: Fix Listable 2024-11-16 16:03:00 +08:00
世界
b5f9e70ffd
badjson: Fix Listable 2024-11-09 11:40:27 +08:00
世界
c80c8f907c
badjson: Add context marshaler/unmarshaler 2024-11-05 18:43:05 +08:00
世界
c324d4143d
json: Add badoption templates 2024-09-10 23:57:22 +08:00
世界
7893a74f75
json: Add UnmarshalDisallowUnknownFields 2024-07-22 12:02:46 +08:00
世界
9571124cf4
badjson: Add disableAppend option 2024-06-22 20:07:31 +08:00
wwqgtxx
0f95dfe0e3
Recover context json for go1.20 2024-06-17 12:38:22 +08:00
世界
589c7eb4df
contentjson: Add support for tailing comma 2024-06-17 12:38:21 +08:00
世界
2873799b6d
Drop context json for go1.20 2024-06-17 12:38:21 +08:00
世界
3e2631ef0b
badjson: Improve omitempty 2024-04-10 20:25:46 +08:00
世界
ef00a1ec1e
Fix badjson merge 2024-02-22 17:27:13 +08:00
世界
0d1b3d6d6d
badjson: Refactor TypedMap to handle multiple key types 2023-12-25 00:05:51 +08:00
世界
edd320c3a8
badjson: Add UnmarshalExtended 2023-12-24 08:03:41 +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
世界
060edf2d69
badjson: Remove empty JSON object in JSON object 2023-12-24 08:03:37 +08:00
世界
d171f04941
json: use context json in go1.20 2023-12-24 08:03:36 +08:00
世界
51aeb14a87
contextjson120: Add context to decode error message 2023-12-24 08:03:36 +08:00
世界
96f5dea24b
contextjson120: Import form go1.20.11 2023-12-24 08:03:36 +08:00
世界
3336b50119
Migrate json wrapper and badjson to library 2023-12-24 08:03:35 +08:00
世界
36be4ef141
contextjson: Add context to decode error message 2023-12-24 08:03:35 +08:00
世界
843bab522a
contentjson: Import from go1.21.4 2023-12-24 08:03:35 +08:00