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