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.

7 Likes

cross referencing for the other explorers … a.k.a. the curious and confused …

thanks again @Gabriel … helpful indeed :slight_smile:

2 Likes