Skip to content

Conversation

@dflemstr
Copy link
Contributor

The maps are already being serialized as maps, and serde_json will detect
that despite us claiming that maps are seqs, it falls back to parsing them
as maps; however, serde-json-core does not have that fallback logic, so it
makes more sense to give the correct hint here (especially when this is
merged: rust-embedded-community/serde-json-core#23)

The maps are already being serialized as maps, and serde_json will detect
that despite us claiming that maps are seqs, it falls back to parsing them
as maps; however, serde-json-core does not have that fallback logic, so it
makes more sense to give the correct hint here (especially when this is
merged: rust-embedded-community/serde-json-core#23)
@japaric
Copy link
Member

japaric commented Dec 17, 2019

Thanks for the PR. I suppose this is technically a breaking change but since serde-json can deserialize back what you get from serializing a map I don't think anyone was relying on the current behavior.

bors r+

bors bot added a commit that referenced this pull request Dec 17, 2019
125: Deserialize maps as maps r=japaric a=dflemstr

The maps are already being serialized as maps, and serde_json will detect
that despite us claiming that maps are seqs, it falls back to parsing them
as maps; however, serde-json-core does not have that fallback logic, so it
makes more sense to give the correct hint here (especially when this is
merged: rust-embedded-community/serde-json-core#23)

Co-authored-by: David Flemström <david.flemstrom@gmail.com>
@bors
Copy link
Contributor

bors bot commented Dec 17, 2019

Build succeeded

@bors bors bot merged commit c8ef15f into rust-embedded:master Dec 17, 2019
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.

2 participants