Add example of how to deserialize

I'm not 100% sure this is the correct way to deserialize, but it seems to work so I thought an example might be useful for others.