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

7 Commits

Author SHA1 Message Date
Sai To Yeung
8961be9c21
Map keys of custom types should serialize using MarshalText when available (#461)
* Map keys of custom types should serialize/deserialize using MarshalText/UnmarshalText when available

- this brings marshaling/unmarshaling behavior in line with encoding/json
- in general, any types that implement the interfaces from the encoding package (TextUnmarshaler, TextMarshaler, etc.) should use the provided method when available
2020-05-08 10:21:59 +08:00
Tao Wen
05d041de10 fix #313 support json marshaller type as map key 2018-10-24 23:28:41 +08:00
Tao Wen
fff342fd04 gofmt 2018-02-24 22:04:41 +08:00
Tao Wen
a8708bca85 consolidate more tests 2018-02-14 08:58:59 +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