Skip to content

Support deserializing map key as &RawValue#851

Merged
dtolnay merged 2 commits intomasterfrom
rawkey
Jan 22, 2022
Merged

Support deserializing map key as &RawValue#851
dtolnay merged 2 commits intomasterfrom
rawkey

Conversation

@dtolnay
Copy link
Copy Markdown
Member

@dtolnay dtolnay commented Jan 22, 2022

No description provided.

Currently fails with:

    ---- test_raw_value_in_map_key stdout ----
    thread 'test_borrowed_raw_value' panicked at 'called `Result::unwrap()`
    on an `Err` value: Error("invalid type: newtype struct, expected any
    valid JSON value", line: 1, column: 2)', tests/test.rs:2230:52
@dtolnay dtolnay merged commit cbb0342 into master Jan 22, 2022
@dtolnay dtolnay deleted the rawkey branch January 22, 2022 23:30
@jplatte
Copy link
Copy Markdown
Contributor

jplatte commented Jan 24, 2022

This also affects Box<RawValue>, correct?

takumi-earth pushed a commit to earthlings-dev/json that referenced this pull request Jan 27, 2026
Support deserializing map key as &RawValue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants