/OrderedMap

orderedmap preserves the order of map keys

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

OrderedMap

orderedmap is useful when JSON field ordering is relevant. encoding/json has no way to preserve the order of map keys. See golang/go#27179.

Using JSONv2 is the future goal, which solves field order, other issues, and has other best practices.When Go Coze is migrated to JSONv2, as long as JSONv2 provides ordering, orderedmap will be deprecated. See Cyphrme/Coze#15

Contributors

Thank you to peterbourgon for contributing!


Attribution, Trademark Notice, and License

OrderedMap is released under The 3-Clause BSD License.

"Cyphr.me" is a trademark of Cypherpunk, LLC. The Cyphr.me logo is all rights reserved Cypherpunk, LLC and may not be used without permission.