Tao Wen
09cb1d9236
#81 handle field name conflict properly
2017-06-29 20:34:40 +08:00
Tao Wen
84fa033353
#80 fix the case when embedded struct ptr is nil
2017-06-29 18:45:11 +08:00
Tao Wen
dc44e85a86
#73 fix interface{} optimization for one ptr field struct and array
2017-06-26 22:37:24 +08:00
Tao Wen
8f8e16b4c2
#63 keep struct field order
2017-06-23 08:21:02 +08:00
Tao Wen
ff3c624fa9
fix anonymous fields
2017-06-21 00:26:18 +08:00
Tao Wen
486534c67c
#67 time as int64
2017-06-20 17:43:47 +08:00
Tao Wen
818ae1331a
#68 number to string
2017-06-20 15:11:01 +08:00
Tao Wen
8f6a840c63
fix anonymous struct
2017-06-20 13:33:40 +08:00
Tao Wen
be221df432
#66 Make extension api like the java version
2017-06-20 10:41:54 +08:00
Tao Wen
b3170a8cef
rename Encoder => ValEncoder and Decoder => ValDecoder
2017-06-20 07:59:45 +08:00
Tao Wen
43a832beee
add isEmptyFunc
2017-06-20 07:57:23 +08:00
Tao Wen
eecb062c32
#63 support decode anonymous struct
2017-06-19 23:02:57 +08:00
Tao Wen
3d5f6d3a4a
#58 string mode support both encoding and decoding
2017-06-17 11:38:09 +08:00
Tao Wen
d867c8ba5c
#53 split config into Config and frozenConfig
2017-06-13 18:49:35 +08:00
Tao Wen
d0418857ce
#53 move current config EnableXXX
2017-06-13 17:47:40 +08:00
Tao Wen
acddcf5bbf
#53 extract out config
2017-06-13 16:58:53 +08:00
Tao Wen
cfffa29c8a
gofmt
2017-06-06 23:27:00 +08:00
Tao Wen
59e71bacc8
#36 handle anonymous
2017-06-02 16:52:20 +08:00
Tao Wen
7d5f90261e
#28 extension should support specifying encoder
2017-05-24 10:58:56 +08:00
Tao Wen
6126a6d3ca
#23 hide unexported fields by default
2017-05-24 09:39:11 +08:00
Tao Wen
5488fde97f
fix one field struct interface{} optimization compatibility
2017-05-23 17:44:50 +08:00
Tao Wen
a92111261c
fix struct with one pointer field
2017-05-05 17:27:41 +08:00
Tao Wen
91b9e828b7
support recursive type
2017-05-05 16:51:05 +08:00
eruca
9a138f8b6a
fix bug of another comma added
...
previous code will add comma if the field is empty when is not first, like
```
{"account":"1120","name":"nick",,"department":"fsaf","role":1,"privilege":32,,"created_at":1489226500}
```
2017-03-11 18:17:34 +08:00
Tao Wen
d1aa59e34e
#12 implement omitempty
2017-03-08 07:38:25 -08:00
Tao Wen
ceb8c8a733
create map if nil
2017-03-07 18:36:58 -08:00
Tao Wen
da7ed7809b
use hash for field dispatching
2017-02-08 13:46:28 +08:00
Tao Wen
6880076b44
fix map[string]interface{} in struct
2017-02-03 18:44:54 +08:00
Tao Wen
9b587c0f22
suport encode interface
2017-01-26 00:25:17 +08:00
Tao Wen
d14b025931
make ReadObject return safe string
2017-01-20 12:40:52 +08:00
Tao Wen
90fc0b822f
array encoder
2017-01-09 19:48:57 +08:00
Tao Wen
552afb3625
struct encoder
2017-01-09 19:19:48 +08:00
Tao Wen
5b0609f901
support int/string encode
2017-01-09 17:47:21 +08:00
Tao Wen
5af8cc4b09
split files
2017-01-07 07:49:50 +08:00