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

577 Commits

Author SHA1 Message Date
Tao Wen
d80309af3b #156 invoke Marshaler defined on pointer types 2017-09-01 15:44:12 +08:00
Tao Wen
36b14963da #153 fix invalid utf8 using same implementation as the standard library 2017-08-29 23:58:51 +08:00
Tao Wen
f706335302 #153 fix critical bug: infinite loop when write string is invalid utf8 2017-08-29 23:39:43 +08:00
Tao Wen
2dc0031b26 #152 gofmt 2017-08-25 12:53:23 +08:00
Tao Wen
cdbd2ed810 #145 interface {} customizatoin is recursive 2017-08-22 10:39:01 +08:00
Tao Wen
39e9d67807 Merge branch 'master' of https://github.com/json-iterator/go 2017-08-22 00:12:18 +08:00
Tao Wen
2066b01acb #146 support config TagKey 2017-08-22 00:12:09 +08:00
Tao Wen
ac3b3cd160 test []interface{} 2017-08-21 22:43:51 +08:00
Tao Wen
887789156a Merge pull request #147 from thockin/output_tests
Add tests for int64
2017-08-11 12:55:48 +08:00
Tim Hockin
7df5a67d0d Add tests for int64 2017-08-10 20:58:49 -07:00
Tao Wen
9c358632dc #144 make []byte support Unmarshaler&Marshaler 2017-08-09 13:59:40 +08:00
Tao Wen
1cfa233923 #143 make jsoniter.Number same meaning as json.Number, however UseNumber still returns json.Number. 1.9 alias support should be added later 2017-08-05 07:22:53 +08:00
Tao Wen
d249b05a85 rename ValueType, to avoid collision with json.Number 2017-08-05 07:10:15 +08:00
Tao Wen
abbd16da6c #140 blind fix 2017-08-02 09:20:43 +08:00
Tao Wen
b67201557a avoid gc issue 2017-08-01 08:34:38 +08:00
Tao Wen
5124683f24 #140 try fix: maybe memory collected before assigned to existing object graph 2017-07-31 23:24:58 +08:00
Tao Wen
4892de725b add ad 2017-07-31 21:49:02 +08:00
Tao Wen
34a2174be3 #142 decode struct field should be case insensitiveyet another fix 2017-07-31 21:48:22 +08:00
Tao Wen
24ecaff2a1 #142 decode struct field should be case insensitive, the bug only happen for struct with more than 10 fields 2017-07-31 20:50:07 +08:00
Tao Wen
c15b4d116c #139 unmarshal non base64 into []byte 2017-07-19 12:04:22 +08:00
Tao Wen
12cd299fa8 add benchmark for Skip() 2017-07-19 00:22:41 +08:00
Tao Wen
60ba332980 acknowledge @mattn for #138 #137 #136 #135 2017-07-19 00:09:50 +08:00
Tao Wen
f705934fbf #138 fix - without following digits; fix 1.e1 2017-07-18 23:48:40 +08:00
Tao Wen
17a26a6e20 remove debug print 2017-07-18 23:24:21 +08:00
Tao Wen
156284b028 #137 fix unicode surrogate incompatibility 2017-07-18 23:17:52 +08:00
Tao Wen
6b6938829d #136 strconv.ParseFloat can not validate 1. , added extra validation for this special case 2017-07-18 22:19:52 +08:00
Tao Wen
e066e54964 #135 verify 1e1 and 1.0e1 is handled same as std 2017-07-18 11:28:19 +08:00
Tao Wen
18d6ae2668 #135 fix leading zero 2017-07-18 11:23:29 +08:00
Tao Wen
c966eaa031 #135 fix double negative 2017-07-18 11:05:39 +08:00
Tao Wen
f6da8e62c3 #133 validate json when Skip() 2017-07-18 09:45:25 +08:00
Tao Wen
5eded4f6ae implement skip number and string strictly 2017-07-18 09:01:43 +08:00
Tao Wen
9b3ec40fd9 #133 fix empty struct skip; fix ] as empty array 2017-07-17 09:09:00 +08:00
Tao Wen
0d604da7d7 Merge pull request #134 from thockin/output_tests
Add a fuzz test for non-JSON input
2017-07-17 08:47:36 +08:00
Tim Hockin
b6ace7d51b Add a fuzz test for non-JSON input 2017-07-16 17:24:46 -07:00
Tao Wen
6a4fbb9892 ensure buffer flushed to io.Writer 2017-07-16 10:47:24 +08:00
Tao Wen
4ae426c4b7 Merge branch 'master' of https://github.com/json-iterator/go 2017-07-15 18:09:14 +08:00
Tao Wen
b46d0a2324 make test faster 2017-07-15 18:09:06 +08:00
Tao Wen
8b03604184 Merge pull request #131 from cch123/feature-increase-coverage
update conversion table, add string escape test
2017-07-13 19:01:45 +08:00
Xargin
93ce14316d increase coverage 2017-07-13 15:32:26 +08:00
Xargin
779c3e2164 update conversion table 2017-07-13 00:13:04 +08:00
Tao Wen
4b33139ad0 #130 loadMore should use iter.captured 2017-07-12 17:56:51 +08:00
Tao Wen
dc388588a3 Merge branch 'master' of https://github.com/json-iterator/go 2017-07-12 16:40:14 +08:00
Tao Wen
bd4364ab7c #129 fix read map with reader, should use ReadMapCB instead of ReadObjectCB 2017-07-12 16:40:05 +08:00
Tao Wen
b9dc3ebda7 Merge pull request #128 from carlcarl/fix-json-use-number
Fix #123, `UseNumber` not works with iterator
2017-07-12 07:04:30 +08:00
carlcarl
90137b4a60 Use readNumberAsString 2017-07-12 00:23:49 +08:00
carlcarl
be9d4ded4f Use json.Number as the return 2017-07-12 00:11:50 +08:00
carlcarl
7b1fd129cf Add test for iterator UseNumber 2017-07-11 23:39:09 +08:00
carlcarl
b91b7ac682 Fix #123, make iterator read int if using number 2017-07-11 22:07:08 +08:00
Tao Wen
845d8438db #126 fix space in case map key is sorted 2017-07-11 01:07:18 +08:00
Tao Wen
d37197e176 #126 add space between map key and value when MarshalIndent 2017-07-10 22:14:11 +08:00