Skip to content

Conversation

@dflemstr
Copy link
Contributor

This enables constructing map-like types (a PR for that to heapless will follow)

dflemstr added a commit to dflemstr/heapless that referenced this pull request Nov 18, 2019
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
Collaborator

japaric commented Dec 17, 2019

LGTM

bors r+

bors bot added a commit that referenced this pull request Dec 17, 2019
23: Attempt to add support for de/serializing maps r=japaric a=dflemstr

This enables constructing map-like types (a PR for that to heapless will follow)

Co-authored-by: David Flemström <dflemstr@spotify.com>
@bors
Copy link
Contributor

bors bot commented Dec 17, 2019

Build succeeded

@bors bors bot merged commit 0f2ee31 into rust-embedded-community:master Dec 17, 2019
bors bot added a commit to rust-embedded/heapless 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>
@dflemstr dflemstr deleted the maps-only branch December 17, 2019 19:40
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