1
0
mirror of https://github.com/json-iterator/go.git synced 2025-04-20 11:28:49 +02:00

741 Commits

Author SHA1 Message Date
Tao Wen
0ff49de124 update README v1.1.6 2019-03-06 22:29:09 +08:00
Tao Wen
5bc9320502
Merge pull request #316 from proemergotech/master
fix #308 do NOT skip embedded structs without tag when OnlyTaggedFiel…
2019-02-08 15:56:42 +08:00
Tao Wen
f64ce68b6e
Merge pull request #338 from dvrkps/master
Clean go vet error and ineffassign warnings.
2019-01-14 23:53:30 +08:00
Tao Wen
2d42ff74dd
Merge pull request #337 from denverdino/fix-encode-with-MarshalJSON
Fix the incompatible encoding #336
2019-01-14 23:52:16 +08:00
Davor Kapsa
3a023a5fbc clean readPositiveFloat64 2019-01-10 18:00:15 +01:00
Davor Kapsa
16aef10b2b clean readPositiveFloat32 2019-01-10 17:55:28 +01:00
Davor Kapsa
ae4c002f78 rename ExampleMyKey 2019-01-10 17:51:25 +01:00
Li Yi
e4aa2ec063 Fix the incompatible encoding 2019-01-03 18:19:22 +08:00
Tao Wen
d05f387f50 fix #317, try parse as BigFloat if overflow 2018-11-12 14:45:56 +08:00
Adam Kiss
a9403d25cd fix #308 do NOT skip embedded structs without tag when OnlyTaggedField is set to true 2018-10-29 12:00:51 +01:00
Tao Wen
05d041de10 fix #313 support json marshaller type as map key 2018-10-24 23:28:41 +08:00
Tao Wen
5916df66b3 fix #311 handle nil any 2018-10-24 21:05:37 +08:00
Tao Wen
2433035e51
Merge pull request #304 from Quasilyte/quasilyte/emptyFallthrough
use multi-value case clause instead of fallthrough
2018-09-14 09:48:43 +08:00
Tao Wen
6dfc0bf2dd
Merge pull request #305 from Quasilyte/quasilyte/assignOp
simplify `x = x <op> y` to `x <op>= y`
2018-09-14 09:48:25 +08:00
Tao Wen
b9be8dd373
Merge pull request #306 from Quasilyte/quasilyte/underef
remove redundant dereferencing expressions
2018-09-14 09:47:54 +08:00
Tao Wen
b8d78b6aaf
Merge pull request #307 from Quasilyte/quasilyte/commentedOutCode
any_tests: remove commented-out code
2018-09-14 09:47:25 +08:00
Iskander Sharipov
7109b5e7dd any_tests: remove commented-out code
Found using https://go-critic.github.io/overview#commentedOutCode-ref
2018-09-13 21:57:53 +03:00
Iskander Sharipov
4cc76529e8 remove redundant dereferencing expressions
Found using https://go-critic.github.io/overview#underef-ref
2018-09-13 21:51:59 +03:00
Iskander Sharipov
c5ddac9dc3 simplify x = x <op> y to x <op>= y
Found using https://go-critic.github.io/overview#assignOp-ref
2018-09-13 21:48:13 +03:00
Iskander Sharipov
f76d712086 use multi-value case clause instead of fallthrough
Found using https://go-critic.github.io/overview#emptyFallthrough-ref
2018-09-13 21:43:37 +03:00
Tao Wen
1624edc445 fix #295 decoder more was not compatible with standard library v1.1.5 1.1.5 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 1.1.4 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{} 1.1.3 2018-03-15 21:28:16 +08:00