1
0
mirror of https://github.com/json-iterator/go.git synced 2025-12-20 23:30:38 +02:00
Files
json-iterator/value_tests/map_test.go
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

2.5 KiB