You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems it would be nice for candid to implement CandidType on serde_json::Value. This would allow for candid serialization of arbitrary JSON values. I would implement CandidType myself, but in my crates I am depending on serde_json::Value and candid directly, thus I can't implement CandidType without relying on some kind of wrapper around serde_json::Value. Seems serde_json::Value is the canonical way to serialize and deserialize arbitrary JSON in Rust, so could it be added to the library here? https://github.com/dfinity/candid/blob/master/rust/candid/src/types/impls.rs
I am happy to do the work if it would be accepted.
The text was updated successfully, but these errors were encountered:
See this forum post for more information: https://forum.dfinity.org/t/derive-candidtype-with-serde-json/5800
Seems it would be nice for
candid
to implementCandidType
onserde_json::Value
. This would allow for candid serialization of arbitrary JSON values. I would implementCandidType
myself, but in my crates I am depending onserde_json::Value
andcandid
directly, thus I can't implementCandidType
without relying on some kind of wrapper aroundserde_json::Value
. Seemsserde_json::Value
is the canonical way to serialize and deserialize arbitrary JSON in Rust, so could it be added to the library here? https://github.com/dfinity/candid/blob/master/rust/candid/src/types/impls.rsI am happy to do the work if it would be accepted.
The text was updated successfully, but these errors were encountered: