Consider using '--resolveJsonModule' to code example
Example: Consider using '--resolveJsonModule
add "resolveJsonModule": true key in tsconfig.json
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"strict": true,
"moduleResolution": "node",
"resolveJsonModule": true
}
}