1
0
mirror of https://github.com/json-iterator/go.git synced 2024-12-09 08:55:35 +02:00
Commit Graph

36 Commits

Author SHA1 Message Date
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
Tao Wen
ab8a2e0c74 fix #276 allow rename when set naming strategy 2018-07-01 15:16:28 +08:00
Tao Wen
720ab8dc7f add tests for #283 2018-07-01 13:05:25 +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
ca39e5af3e suport encode map[interface{}]interface{} 2018-03-15 21:28:16 +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
ad83167dc6 fix #243 fuzzy decoder should take null as valid input 2018-02-26 23:22:22 +08:00
Tao Wen
99fc16a363 use reflect2 to replace reflect 2018-02-22 10:12:08 +08:00
Tao Wen
0e2b54800a remove EncodeInterface 2018-02-14 15:04:23 +08:00
Xargin
b134d86290 optimize code 2017-09-06 13:18:05 +08:00
Xargin
bc3221879d fix fuzzy decoder from bool value to number 2017-09-06 12:31:56 +08:00
Tao Wen
8c7fc7584a #159 fix fuzzy decoder, the newIter assigned io.EOF error to original iterator, which stopped further processing 2017-09-06 00:31:25 +08:00
Tao Wen
d249b05a85 rename ValueType, to avoid collision with json.Number 2017-08-05 07:10:15 +08:00
Tao Wen
f0487718f6 document public symbols 2017-07-09 16:09:23 +08:00
Tao Wen
d3448d3dbd fix golint: document exported symbols 2017-07-09 14:21:12 +08:00
Tao Wen
8fbed91768 fix golint: document exported symbols 2017-07-09 14:17:40 +08:00
Tao Wen
dfa4bdf888 merge 2017-07-07 09:14:24 +08:00
Tao Wen
b74ffb2e03 import github.com/stretchr/testify/require 2017-07-07 09:13:25 +08:00
Xargin
5eadecbb66 increase extra coverage 2017-07-06 20:44:38 +08:00
Tao Wen
cf77980493 #71 fixed []byte alias 2017-06-26 14:25:56 +08:00
Tao Wen
ff3c624fa9 fix anonymous fields 2017-06-21 00:26:18 +08:00
Tao Wen
3333ec11a0 support private fields 2017-06-20 23:48:41 +08:00
Tao Wen
29a928e1d2 support naming strategy 2017-06-20 23:09:53 +08:00
Tao Wen
83fa27ff9a #67 time as int64 with decoder 2017-06-20 17:52:41 +08:00
Tao Wen
cefb2972fd #67 time as int64 with specified precision 2017-06-20 17:46:29 +08:00
Tao Wen
486534c67c #67 time as int64 2017-06-20 17:43:47 +08:00
Tao Wen
85be06b145 #68 empty array to object/map 2017-06-20 16:36:22 +08:00
Tao Wen
086001225d #68 string to float64 2017-06-20 16:20:56 +08:00
Tao Wen
2ea4d48e1f #68 string to float32 2017-06-20 16:17:00 +08:00
Tao Wen
ae6ce2fc3f #68 fuzzy all kinds of integer 2017-06-20 16:07:30 +08:00
Tao Wen
8ef0c22f25 #68 handle float to int safely 2017-06-20 15:46:22 +08:00
Tao Wen
a5ae3a2649 #68 float to int 2017-06-20 15:20:56 +08:00
Tao Wen
306b2896cf #68 string to int 2017-06-20 15:18:24 +08:00
Tao Wen
818ae1331a #68 number to string 2017-06-20 15:11:01 +08:00