Skip to content

Use Map instead of a list of tuple for JsonObject#19

Open
mikeantonacci wants to merge 2 commits intotsoding:masterfrom
mikeantonacci:master
Open

Use Map instead of a list of tuple for JsonObject#19
mikeantonacci wants to merge 2 commits intotsoding:masterfrom
mikeantonacci:master

Conversation

@mikeantonacci
Copy link

Import Data.Map.Strict and use Map instead [(String, JsonValue)] for the JsonObject.

As a side effect, duplicate keys are handled in jsonObject by fromList with the same behavior as JavaScript, i.e. "If the list contains more than one value for the same key, the last value for the key is retained."

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

Successfully merging this pull request may close these issues.

1 participant