JoshOrndorff / recipes

A Hands-On Cookbook for Aspiring Blockchain Chefs
GNU General Public License v3.0
378 stars 188 forks source link

Extend nested struct recipe to show how to serialise the nested struct data and pretty print using serde_json for debugging #417

Open ltfschoen opened 3 years ago

ltfschoen commented 3 years ago

I'd like to suggest expanding on this https://substrate.dev/recipes/structs.html#nested-structs, by showing how someone would use stringify the nested struct using serde and pretty print it, similar to how i tried to do it here https://matrix.to/#/!HzySYSaIhtyWrwiwEV:matrix.org/$161545785896192eWpjV:matrix.org?via=matrix.parity.io&via=matrix.org&via=corepaper.org