Skip to content

feat(json): implement MarshalJSON and UnmarshalJSON preserving key order - #67

Open
AdamMagued wants to merge 1 commit into
elliotchance:masterfrom
AdamMagued:fix-issue-56
Open

AdamMagued wants to merge 1 commit into
elliotchance:masterfrom
AdamMagued:fix-issue-56

Conversation

@AdamMagued

@AdamMagued AdamMagued commented Oct 9, 2026 •

Copy link
Copy Markdown

Fixes #56

Summary

  • Implemented json.Marshaler and json.Unmarshaler on OrderedMap to guarantee JSON keys preserve insertion order during serialization.
  • Added unit tests covering JSON marshaling and unmarshaling.

Verified via container sandbox test suite.


This change is Reviewable

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preserve json keys order while marshalling in Go

1 participant