import { Serialization } from '../exposed' ; /**
 * Out of the box JSON Serialization of objects.
 */ export class JSONSerialization implements Serialization { public serialize ( objectToSerialize ) { return JSON . stringify ( objectToSerialize ) ; } public deserialize ( documentToDeserialize ) { console . log ( 'documentToDeserialize' , documentToDeserialize ) ; return JSON . parse ( documentToDeserialize ) ; } }