serializing meta data with JSON