Typescript parse json to object

To convert between your typed (and annotated) class instance and JSON, create an instance of TypedJSON, with the class as its argument. The class argument specifies the root type of the object-tree represented by the emitted/parsed JSON: const serializer = new TypedJSON(MyDataClass); const object = new MyDataClass(); const json = serializer.stringify(object); const object2 = serializer.parse ... ................
................