go-ordered-map icon indicating copy to clipboard operation
go-ordered-map copied to clipboard

json.Unmarshall doesn't use OrderedMap for nested structs

Open palevi67 opened this issue 4 months ago • 1 comments

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

palevi67 avatar Sep 04 '25 19:09 palevi67

I came here because I had this concern! Oh no.

ghostsquad avatar Oct 25 '25 19:10 ghostsquad