JSON to TypeScript interface With this package a JSON string can be converted to a TypeScript interface definition. The JSON will be parsed to an object literal with JSON.parse. Usage json2ts(json, 'root'); The result can be found here.