1
0
mirror of https://github.com/json-iterator/go.git synced 2025-02-19 19:59:49 +02:00

687 Commits

Author SHA1 Message Date
Tao Wen
455b3f8bb8 move reflect2 from plz to modern-go 2018-02-28 17:09:30 +08:00
Tao Wen
2a93f9003e fix #244 use BinaryAsStringExtension to make []byte pretty, while the output is valid json, but it can not be decoded by other json codec, as \x01 is decoded as \x01 by them, which is not original input 2018-02-27 12:40:48 +08:00
Tao Wen
9472474ffd test []byte behavior 2018-02-27 12:04:11 +08:00
Tao Wen
ad83167dc6 fix #243 fuzzy decoder should take null as valid input 2018-02-26 23:22:22 +08:00
Tao Wen
fff342fd04 gofmt 2018-02-24 22:04:41 +08:00
Tao Wen
8d6662b81b fix #242 add CreateMapKeyEncoder and CreateMapKeyDecoder to extension spi 2018-02-24 22:04:11 +08:00
Tao Wen
a377e2656b add map key example 2018-02-23 18:20:14 +08:00
Tao Wen
0ac74bba4a upgrade reflect2 1.1.1 2018-02-23 08:20:31 +08:00
Tao Wen
ebe943a4a6 fix #241, support 32bit platform 2018-02-23 08:12:45 +08:00
Tao Wen
414d0307c9 fix struct decoder report error 2018-02-22 13:30:59 +08:00
Tao Wen
86e9fd72bc update pkg 2018-02-22 11:48:56 +08:00
Tao Wen
be70f29b04 detect remaining bytes 1.1.0 2018-02-22 10:37:32 +08:00
Tao Wen
a3fdd37b9a use sync.Pool 2018-02-22 10:29:29 +08:00
Tao Wen
d346ea6e55 get encoder without get type first 2018-02-22 10:20:19 +08:00
Tao Wen
820ec30bd6 get decoder without get type first 2018-02-22 10:18:27 +08:00
Tao Wen
df8295a48a fix 1.8 2018-02-22 10:13:38 +08:00
Tao Wen
99fc16a363 use reflect2 to replace reflect 2018-02-22 10:12:08 +08:00
Tao Wen
a3866383f5 support recursive struct 2018-02-21 17:59:41 +08:00
Tao Wen
2fcbb23d96 rewrite how eface and iface are handled 2018-02-21 12:16:50 +08:00
Tao Wen
ea6403326b fix #239, empty slice 2018-02-21 07:24:22 +08:00
Tao Wen
404d90796f move type declaration into separate files 2018-02-20 23:08:58 +08:00
Tao Wen
b79587753b move any codec 2018-02-20 23:04:04 +08:00
Tao Wen
63ea5e3131 move encoder/decoder of native 2018-02-20 22:55:31 +08:00
Tao Wen
895a19f2dc move json raw message 2018-02-20 22:38:35 +08:00
Tao Wen
6327145300 move json number impl 2018-02-19 23:13:33 +08:00
Tao Wen
c99d73acd0 rename 2018-02-19 23:08:01 +08:00
Tao Wen
3d39af6dd9 remove feature prefix 2018-02-19 23:04:25 +08:00
Tao Wen
a016e87b9f move any codec 2018-02-19 23:01:19 +08:00
Tao Wen
08218647c3 use reflect2 to implement map decoder 2018-02-19 22:53:42 +08:00
Tao Wen
d6f02cbd48 remove sliceHeader 2018-02-19 14:39:57 +08:00
Tao Wen
b53aa13eb0 rename 2018-02-19 14:30:44 +08:00
Tao Wen
e322da5531 rename 2018-02-19 14:30:23 +08:00
Tao Wen
1d41f3c0ed only consider ptr type if not root 2018-02-19 14:30:01 +08:00
Tao Wen
29604bf5c3 use reflect2 decode slice 2018-02-19 14:18:42 +08:00
Tao Wen
cbc1786a76 change slice encoder to use reflect2 2018-02-18 23:27:34 +08:00
Tao Wen
5a696808d6 fix any codec 2018-02-18 22:57:01 +08:00
Tao Wen
d8e64aa825 support TextMarshaler as map key 2018-02-18 22:49:06 +08:00
Tao Wen
577ddede74 use extension to implement configs 2018-02-18 21:14:37 +08:00
Tao Wen
43d9384d67 fix marshaler support for iface case 2018-02-18 21:05:42 +08:00
Tao Wen
2074f25bd3 use extension to implement EscapeHtml config option 2018-02-17 22:55:35 +08:00
Tao Wen
ef3038593b check nil for interface{} 2018-02-17 22:33:09 +08:00
Tao Wen
9dafbc667f when embedded ptr is nil, the fields should be omitted 2018-02-16 17:32:41 +08:00
Tao Wen
a7a34507ab use reflect2 for json.Marshaler 2018-02-16 15:42:37 +08:00
Tao Wen
0e2b54800a remove EncodeInterface 2018-02-14 15:04:23 +08:00
Tao Wen
e7c7f3b337 fix coverage 1.0.6 2018-02-14 14:06:32 +08:00
Tao Wen
75810179f6 remove n from stream 2018-02-14 13:58:51 +08:00
Tao Wen
6a8f9fa342 Merge branch 'float-allocs' of git://github.com/brian-brazil/go into 1.1 2018-02-14 11:37:27 +08:00
Tao Wen
24bb2eee9f fix #236 case sensitive when both upper case and lower case presents 2018-02-14 11:33:17 +08:00
Tao Wen
64cc784089 remove special handling for field 2018-02-14 10:31:55 +08:00
Tao Wen
477be43d00 consolidate more tests 2018-02-14 10:13:34 +08:00