go-ordered-map
go-ordered-map copied to clipboard
json.Unmarshall doesn't use OrderedMap for nested structs
Hi,
I have noticed that when I unmashall a json into an OrderedMap[string, any], internal structures are unmarshalled as map[string]any, so order is lost for internal fields ...
How can I overcome this problem?
I have writen a test case witch demonstrates this: om_test.go.txt
I came here because I had this concern! Oh no.