title: Implement JSON deserialization at the type level
body: <p>I want to implement json serialization and deserialization at the type level of typescript.</p>
  <p>I found an implementation of deserialization on <a href="https://github.com/jamiebuilds/json-parser-in-typescript-very-bad-idea-please-dont-use" rel="nofollow noreferrer">github</a>.</p>
  <p>How can I implement serialization?</p>