a simple serialization solution based on picojson