Ben Brooks
028e2ef2bd
Fixes #405 - Encode nil map into null
2019-09-19 13:11:30 +01:00
Nikhita Raghunath
fb5614a4ca
Don't marshal empty byte or uint8 slice as null
...
[]byte or []uint8 are encoded as base-64 encoded string. Per this, non-nil
empty slice should not get marshalled as null, rather as "".
This restores compatibility with the standard library.
2019-06-03 16:19:17 +05:30
Tao Wen
08047c174c
fix #365 , return error for +inf -inf and NaN
2019-05-23 13:57:43 +08: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
ceshihao
6a6742f0a2
fix base64 contains newline characters \r or \n
2018-04-23 23:10:55 +08:00
Tao Wen
ca39e5af3e
suport encode map[interface{}]interface{}
2018-03-15 21:28:16 +08:00
Tao Wen
25fa392355
fix #245 , always reuse existing value even UseNumber
2018-03-01 19:23:20 +08:00
Tao Wen
fff342fd04
gofmt
2018-02-24 22:04:41 +08:00
Tao Wen
2fcbb23d96
rewrite how eface and iface are handled
2018-02-21 12:16:50 +08:00
Tao Wen
477be43d00
consolidate more tests
2018-02-14 10:13:34 +08:00
Tao Wen
a8708bca85
consolidate more tests
2018-02-14 08:58:59 +08:00
Tao Wen
658ff9ef15
consolidate more tests
2018-02-14 08:48:12 +08:00
Tao Wen
64c1c67885
consolidate more tests
2018-02-14 08:39:18 +08:00
Tao Wen
e3bc511e5a
consolidate more tests
2018-02-14 08:28:17 +08:00
Tao Wen
8fa357ab7b
consolidate mor tests
2018-02-13 23:49:40 +08:00