Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENHANCEMENT: Inconsistent sort order of children elements during marshalling #71

Open
tpoxa opened this issue Jul 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tpoxa
Copy link

tpoxa commented Jul 19, 2024

Marshaling of the same node returns a list of children nodes in a different order.

Possibly because of the range over a map of children here:

https://github.com/spyzhov/ajson/blob/master/encode.go#L66

@spyzhov
Copy link
Owner

spyzhov commented Sep 10, 2024

Hello, based on the JSON description:

An object is an unordered set of name/value pairs.

https://www.json.org/json-en.html

Adding the force ordering into it will add unnecessary load.

I will add some additional configs, but it's not a bug.

@spyzhov spyzhov added the enhancement New feature or request label Sep 10, 2024
@tpoxa tpoxa changed the title BUG: Inconsistent sort order of children elements during marshalling ENHANCEMENT: Inconsistent sort order of children elements during marshalling Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants