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

CSAPI - CSAPI expects fields to be ordered when parsing JSON #275

Open
ChainReaction31 opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@ChainReaction31
Copy link
Member

The JSON spec defines objects as unordered: https://www.json.org/json-en.html

This causes quite a few issues depending on how a language does serialization and deserialization. In JS/TS for example JSON.stringify() will often reorder fields. This can be worked around, but the behavior is not expected.

It does not seem like it is user friendly to expect that request bodies are strictly ordered.

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