1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-27 08:30:57 +02:00
Commit Graph

388 Commits

Author SHA1 Message Date
Tao Wen
815aa331a8 #101 checkIsEmpty can not reuse createEncoderOfSimpleType, otherwise it will fail when struct member is not serializable 2017-07-02 11:13:21 +08:00
Tao Wen
54ab168362 #99 support uintptr 2017-07-02 11:03:13 +08:00
Tao Wen
87d1ea0c60 Merge pull request #100 from thockin/output_tests
Output tests for text marshal and uintptr
2017-07-02 07:41:50 +08:00
Tim Hockin
6268a1cbc8 add test for uintptr 2017-07-01 10:57:42 -07:00
Tim Hockin
d56566286c Add tests for omitempty and text methods 2017-07-01 10:28:59 -07:00
Tao Wen
f2c50ef73b #97 omit empty behavior should follow the original type 2017-07-02 00:41:23 +08:00
Tao Wen
d0c5988985 Merge pull request #98 from thockin/output_tests
Add tests for omitempty and json methods
2017-07-02 00:15:51 +08:00
Tim Hockin
17eed15fb5 Add tests for omitempty and json methods 2017-07-01 08:26:42 -07:00
Tao Wen
e260979001 #95 struct and empty struct is considered as notempty 2017-07-01 11:48:17 +08:00
Tao Wen
3cf9b7c253 Merge pull request #96 from thockin/output_tests
Add test for omitempty on struct
2017-07-01 11:33:17 +08:00
Tim Hockin
800df52ccd Add test for omitempty on struct 2017-06-30 20:32:27 -07:00
Tao Wen
e3ba0e7b7e #93 fix omitempty within embedded struct 2017-07-01 09:27:48 +08:00
Tao Wen
e366c72b81 Merge pull request #94 from thockin/output_tests
Add test for embedded+omitempty
2017-07-01 09:01:13 +08:00
Tim Hockin
69551ef38f Add test for embedded+omitempty 2017-06-30 15:16:42 -07:00
Tao Wen
abcf9a8d76 fix tests 2017-07-01 00:35:19 +08:00
Tao Wen
fa0965a968 #90 trim spaces when UnmarshalJSON 2017-07-01 00:33:42 +08:00
Tao Wen
04eae11ba5 #91 fix one ptr embedded struct 2017-07-01 00:09:40 +08:00
Tao Wen
ea8fa7cc63 #91 fix embedded and , 2017-07-01 00:00:38 +08:00
Tao Wen
6540266aaf Merge pull request #92 from thockin/output_tests
Better tests for field name tags
2017-06-30 23:53:02 +08:00
Tim Hockin
ddfbb0c62e better tests for field name tags 2017-06-30 08:16:43 -07:00
Tao Wen
a3a2d1cd25 #87 fix embedded field sorting order 2017-06-30 14:01:50 +08:00
Tao Wen
401a56bc20 #88 #85 support embedded struct with json tags 2017-06-30 13:26:50 +08:00
Tao Wen
cfaa11f837 Merge pull request #89 from thockin/output_tests
More output tests
2017-06-30 13:21:54 +08:00
Tim Hockin
c1411e0ad5 Add test for json tag on embedded field 2017-06-29 22:01:16 -07:00
Tim Hockin
9ec64591b6 Enhance test for overlap and embedded 2017-06-29 22:01:16 -07:00
Tim Hockin
b07d1abc4f Add output_test for partial unmarshal 2017-06-29 22:01:14 -07:00
Tim Hockin
79c4040505 sync up some straggler json_tests 2017-06-29 22:00:39 -07:00
Tim Hockin
7fa780bd5d Uncommit files accidentally added 2017-06-29 22:00:27 -07:00
Tao Wen
7244d730b9 Merge pull request #84 from thockin/output_tests
Output tests for embedded marshalers and arrays
2017-06-29 22:51:46 +08:00
Tim Hockin
12be6e0d43 Add tests for arrays 2017-06-29 07:25:19 -07:00
Tim Hockin
3cfe590a13 Add output test for embedded marshalers 2017-06-29 07:14:33 -07:00
Tao Wen
678c297af3 #75 support MarshalIndent 2017-06-29 20:48:27 +08:00
Tao Wen
1253b8edd3 gofmt 2017-06-29 20:40:25 +08:00
Tao Wen
fb382c0ec1 fix -, 2017-06-29 20:40:07 +08:00
Tao Wen
09cb1d9236 #81 handle field name conflict properly 2017-06-29 20:34:40 +08:00
Tao Wen
e6c24947ee array is just like struct, one element case special for interface{ 2017-06-29 18:58:40 +08:00
Tao Wen
a6673c983a slice embedded in struct will not be optimized by interface{} 2017-06-29 18:52:03 +08:00
Tao Wen
ec7b40d104 update ignore 2017-06-29 18:45:20 +08:00
Tao Wen
84fa033353 #80 fix the case when embedded struct ptr is nil 2017-06-29 18:45:11 +08:00
Tao Wen
4e608af2c7 #80 fix embedded builtins 2017-06-29 10:45:29 +08:00
Tao Wen
3458ccdb20 Merge pull request #83 from thockin/output_tests
Methods on aliased types are not valid map keys
2017-06-29 09:43:12 +08:00
Tim Hockin
45ccfb031f Methods on aliased types are not valid map keys 2017-06-28 09:38:15 -07:00
Tao Wen
545a32f2a1 #76 support TextUnmarshal 2017-06-29 00:14:55 +08:00
Tao Wen
08dbc98040 #76 fix UnmarshalJSON 2017-06-28 23:55:32 +08:00
Tao Wen
82dabdcdbf #77 support -, 2017-06-28 23:47:32 +08:00
Tao Wen
76e62088df #78 not null pointer is considered not empty 2017-06-28 23:39:46 +08:00
Tao Wen
faaa59222a #79 fix string tag on string field 2017-06-28 23:37:10 +08:00
Tao Wen
91ef89a6a2 WIP: MarshalIndent 2017-06-28 23:22:05 +08:00
Tao Wen
3e3caf9184 Merge pull request #82 from thockin/output_tests
Huge updates to output tests
2017-06-28 23:20:59 +08:00
Tim Hockin
03a2daaeee Add a test for caseless unmarshal 2017-06-28 08:11:38 -07:00