Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upJson.Decode.keyValuePairs does not keep field order #940
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Feb 8, 2018
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Feb 8, 2018
|
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
jinjor
closed this
Feb 8, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jinjor
Feb 8, 2018
Contributor
Oops, I found the correct spec is written here.
An object is an unordered collection of zero or more name/value
pairs, where a name is a string and a value is a string, number,
boolean, null, object, or array.
|
Oops, I found the correct spec is written here.
|
jinjor commentedFeb 8, 2018
It looks
Json.Decode.keyValuePairsreturns fields in reversed order. I expect it keeps the order as they are defined.I confirmed JavaScript works as I expected.
Elm: 0.18.0
elm-lang/core: 5.1.1
OS: macOS