As of TypeScript 3.7, it's no longer necessary to use the workaround in this
package for defining valid JSON structures.
This small snippet is all that is required now:
typeJson=
|string
|number
|boolean
|null
|{[key:string]:Json}
|Json[];
json-types
JSON TypeScript Definitions
A simple typescript definition module that simplifies type checking for valid JSON objects. Useful for defining interfaces and parameter type checking.