Commit Graph

73 Commits

Author SHA1 Message Date
Andrey Grazhdankov 65c8b28ca1
Fix encode []*time.Time - check nil (#524) 2024-11-11 11:10:21 +09:00
Nao Yonashiro 5e6fe10846
fix: fixed a problem with NextField being wrong when combining structure embedding and omitempty (#442)
fix #441
2023-03-20 04:54:48 +09:00
Nao Yonashiro 6f969b6d5f
fix: fixed an issue that could not set the correct NextField for fields in the embedded structure (#438)
fix #391
2023-03-13 20:54:51 +09:00
Nao Yonashiro f32a307caf
fix: fixed a problem that MarshalIndent does not work when UnorderedMap is specified (#435) 2023-03-13 19:58:11 +09:00
Nao Yonashiro 06ab2b4c88
fix: fixed handling of anonymous fields other than struct
fix #426
2023-02-24 09:20:14 +09:00
brongineers 6bca989643 test key map MarshalText with std 2022-11-14 22:11:00 +03:00
brongineers 705f51716b fix custom marshal for map key 2022-11-13 21:05:50 +03:00
Nao Yonashiro 95a32fc038 fix: forgot to update p after read
fix #386
2022-07-29 13:58:00 +09:00
Trim21 9a9f9adb05
fix encoder and decoder cache slice edge case 2022-07-10 09:15:33 +08:00
Nao Yonashiro 79d8df005a
Merge branch 'master' into fix/#374 2022-07-07 15:12:08 +09:00
Nao Yonashiro 8f5055b06a fix: In decodeUnicode, the case that the expected buffer's state is not satisfied after reading.
fix #374
2022-07-07 00:42:31 +09:00
Nao Yonashiro 565e07e45c fix: change isPtr to true on listElemCode
fix #370
2022-07-06 16:47:00 +09:00
Nao Yonashiro c8d6da88dd fix: confusing nil in direct interface with typed nil
fix #376
2022-07-03 06:05:26 +09:00
Nao Yonashiro 2ea7ab6e24 fix: wrong the detection method of nilable
fix #339
2022-05-04 23:40:12 +09:00
Nao Yonashiro 321fe31260 feat: add DebugWith option 2022-03-25 05:13:32 +09:00
Masaaki Goshima 0940ff3198
Fix the case where the embedded field is at the end 2022-01-20 23:23:51 +09:00
IncSW 4d0a50640b
fix omitempty string is nil for marshaler 2022-01-18 13:38:44 +03:00
Masaaki Goshima f810369f2d
Fix encoding of MarshalText operation with head offset 2022-01-11 15:11:17 +09:00
Masaaki Goshima 3d6ec17d9a
Add test case 2022-01-05 20:52:13 +09:00
Masaaki Goshima acc66cf172
Fix MarshalIndent for interface type 2022-01-04 22:30:16 +09:00
Masaaki Goshima 45fb730c34
Add test case 2021-12-05 11:38:23 +09:00
Masaaki Goshima 86a671f3bb
Fix embedded field conflict behavior 2021-11-18 19:51:29 +09:00
Nao Yonashiro 0065357ebb fix: to avoid panic on untyped nil #290
fix #290
2021-09-27 10:55:37 +09:00
Masaaki Goshima 559d70d706 Fix encoding of empty struct interface type 2021-09-01 11:41:33 +09:00
Masaaki Goshima 5c527ab463 Add test case 2021-08-30 13:02:43 +09:00
Masaaki Goshima 104829e78f Fix encoding of embedded struct that isn't first field 2021-08-12 13:03:34 +09:00
peterlimg ac9a7dd8e3
Fix encode issue for embed struct with tag 2021-07-20 23:14:26 +10:00
Masaaki Goshima 902856929d Fix indirect layout 2021-07-05 20:30:35 +09:00
Masaaki Goshima 1400b498ab Fix encoding of pointer type in empty interface 2021-06-29 11:35:37 +09:00
Masaaki Goshima cd7fb7392f Support context for MarshalJSON and UnmarshalJSON 2021-06-12 17:06:26 +09:00
Masaaki Goshima edd09e7470 Fix encoding of using empty interface as map key 2021-06-06 20:39:49 +09:00
Masaaki Goshima 544e731166 Fix value of totalLength for encoding 2021-06-02 19:02:36 +09:00
Masaaki Goshima 69e40becbf Fix encoding of omitempty feature for the slice or interface type 2021-04-10 16:25:45 +09:00
Masaaki Goshima ae56d8371d Fix unnecessary indent 2021-04-10 15:25:02 +09:00
Masaaki Goshima 3d47fc9e41 Add debug mode 2021-03-27 12:18:19 +09:00
Masaaki Goshima 4167aefe08 Fix any bugs of encoder
- fix some issues ( #104 #118 #144 #147 )
- fix recursive call operation
- use json.Number of encoding/json
- fix encoding of MarshalJSON and MarshalText
- fix pointer operation
- remove 'anonymous' and 'only' operation
- add test cases for array/slice/map/marshaler
2021-03-11 19:29:35 +09:00
Masaaki Goshima 0d57bf1014 Fix encoding of anonymous struct 2021-02-09 09:20:48 +09:00
Masaaki Goshima d3afb57900 Omit Parallel execution of test case 2020-12-24 20:38:42 +09:00
Masaaki Goshima ee52d7f0ae Fix double pointer 2020-12-07 10:44:24 +09:00
Masaaki Goshima aaea586778 Enable switch map processing at runtime 2020-09-16 18:15:47 +09:00
Masaaki Goshima 898d58b8b8 Supported sorted map 2020-09-16 14:51:37 +09:00
Masaaki Goshima 1e4216f0bc Add test case 2020-08-23 00:53:08 +09:00
Masaaki Goshima 45acfe9424 Add test cases 2020-08-22 18:13:58 +09:00
Masaaki Goshima 3e03bdc53f Fix null validation 2020-08-21 11:51:33 +09:00
Masaaki Goshima 78fe23fc64 Add test cases 2020-08-21 11:08:30 +09:00
Masaaki Goshima 445cc4c1af Fix encoding of json.Number 2020-08-21 01:12:29 +09:00
Masaaki Goshima 23dbdf7fbd Add test case 2020-08-20 23:56:50 +09:00
Masaaki Goshima f434070076 Fix encoding of primitive pointer with string tag 2020-08-20 22:00:20 +09:00
Masaaki Goshima cdd9e281b9 Fix test case 2020-08-20 18:02:14 +09:00
Masaaki Goshima d3d5df5bd4 Fix []byte type of implemeting Marshaler 2020-08-20 17:58:28 +09:00