Candid Serialisation: to_candid and from_candid

In the light of the new candid serialisation I thought I’d share a simple example to serialise/deserialise a type.

The debug will print: [Canister rrkah-fqaaa-aaaaa-aaaaq-cai] ?{num = 1; text = "test"}

Hope this help others.

5 Likes