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

Attributes are out of order when doing a roundtrip #69

Open
yenda opened this issue Apr 20, 2023 · 0 comments
Open

Attributes are out of order when doing a roundtrip #69

yenda opened this issue Apr 20, 2023 · 0 comments

Comments

@yenda
Copy link
Contributor

yenda commented Apr 20, 2023

(jsonista.core/write-value-as-string (jsonista.core/read-value "{\"attribute1\": 1, \"attribute2\": 2}"))
"{\"attribute2\":2,\"attribute1\":1}"

This is annoying in my case as I'm doing some cleanup on the json using clojure that can no-op, in which case I'd expect the same json to come back. The js code that reads it is naive and do a plain comparison

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

No branches or pull requests

1 participant