Serialize and deserialize dictionary

Serialize and deserialize dictionary