Serialize common scientific data types to json and back to original data types.