Serialize and deserialize objects in Powershell with hashtable. Much like you can convert a object to JSON or use Export-CliXML (the .net way), we can use a hashtable string to store the object on disk.
The benefit is a really small footprint when you store the data on disk.
String
Int
Double
Boolean
DateTime
Array of Strings
Array of Integers
Module is published https://www.powershellgallery.com/packages/hashdata
Here is a link to a blogpost explaining stuff http://asaconsultant.blogspot.no/2017/02/serialize-data-with-powershell.html!
Cheers
Tore