import json file into typescript code example
Example 1: how to import a json string from a file in typescript
import {default as a} from "a.json";
a.primaryMain
Example 2: typescript read json file
import {default as a} from "config.json";
config.targetKey
// this requires `"resolveJsonModule": true` in tsconfig.json