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

721 Commits

Author SHA1 Message Date
Tao Wen
1624edc445 fix #295 decoder more was not compatible with standard library 2018-08-06 14:07:27 +08:00
Tao Wen
5d789e5e02 fix #291 omit empty was not handled properly for json raw message 2018-08-06 13:58:33 +08:00
Tao Wen
0260c89b54 fix #286 calcHash should use byte not rune to calc hash 2018-08-06 13:23:06 +08:00
Tao Wen
10a568c511 fix #293 copy extensions 2018-07-22 11:51:51 +08:00
Tao Wen
ab8a2e0c74 fix #276 allow rename when set naming strategy 2018-07-01 15:16:28 +08:00
Tao Wen
2fbdfbb595 merge 2018-07-01 13:06:34 +08:00
Tao Wen
720ab8dc7f add tests for #283 2018-07-01 13:05:25 +08:00
Tim Hockin
f2b4162afb
Merge pull request #285 from nikhita/fix-case-sensitivity
Fix case sensitivity
2018-06-12 13:28:35 -07:00
Nikhita Raghunath
3830516ed0 Fix case sensitivity for nested fields 2018-06-12 11:27:24 +05:30
Tao Wen
7cceb6c2e3
Merge pull request #282 from caesarxuchao/optional-case-sensitivity
Make case sensitivity optional
2018-06-10 17:13:47 +08:00
Chao Xu
b92cf78708 Make case sensitivity optional. Fix
https://github.com/kubernetes/kubernetes/issues/64612
2018-06-07 21:01:05 -07:00
Tao Wen
8744d7c5c7 \n should not be ignored in base64 decode 2018-05-26 09:43:29 +08:00
Tao Wen
37cc313d18 fix #274, unescape before base64 decode 2018-05-26 09:38:52 +08:00
Tao Wen
2ddf6d7582
Merge pull request #266 from ceshihao/fix_base64_with_whitespace
fix base64 contains newline case
2018-04-24 08:46:23 +08:00
ceshihao
6a6742f0a2 fix base64 contains newline characters \r or \n 2018-04-23 23:10:55 +08:00
Tao Wen
6c702ce12a fix #264 check io.EOF when test decoder.More 2018-04-20 16:10:56 +08:00
Tao Wen
f88871b601 fix #263, support empty string as 0 in fuzz mode 2018-04-18 16:34:54 +08:00
Tao Wen
f246f80f14 fix #260, support rename for extra.SupportPrivateFields 2018-04-18 16:28:55 +08:00
Tao Wen
51dd70305b add more test for #252 2018-04-18 16:22:47 +08:00
Tao Wen
a949c42748 fix #261 should load from reader 2018-04-18 16:11:14 +08:00
Tao Wen
f89479f5c0
Merge pull request #257 from ash2k/release-writer
Release writer to enable GC
2018-04-08 08:25:46 +08:00
Mikhail Mazurskiy
b858ec296c Release writer to enable GC 2018-04-07 21:40:08 +10:00
Tao Wen
885a41a0a6 Merge branch 'master' of https://github.com/json-iterator/go 2018-04-03 13:41:12 +08:00
Tao Wen
9e9a97040e always benchmark yourself 2018-04-03 13:41:01 +08:00
Tao Wen
fb4d53e4cc
Merge pull request #255 from bboreham/error-test
Add a test for input errors, and fix one bug that it finds
2018-04-02 13:50:44 +08:00
Bryan Boreham
b53656d459 Check that a struct ends with closing brace 2018-04-01 22:02:44 +00:00
Bryan Boreham
8f27a81d90 Add a test for input errors
Send various malformed JSON strings into the decoder for each type,
and check we get an error each time.
2018-04-01 22:01:21 +00:00
Tao Wen
4930b053b8 explit test case sensitive for #252 2018-03-24 22:38:32 +08:00
Tao Wen
06e0f9391e fix #250 case insensitive field match 2018-03-20 21:43:30 +08:00
Tao Wen
ca39e5af3e suport encode map[interface{}]interface{} 2018-03-15 21:28:16 +08:00
Tao Wen
39acec93e0 expose DecoderOf and EncoderOf 2018-03-14 23:18:20 +08:00
Tao Wen
25fa392355 fix #245, always reuse existing value even UseNumber 2018-03-01 19:23:20 +08:00
Tao Wen
d51e841de0 fix build on 1.8 2018-02-28 20:29:23 +08:00
Tao Wen
3353055b2a use concurrent.Map for 1.8 support 2018-02-28 17:11:57 +08:00
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 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 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