typescript read json files code example
Example 1: typescript read json file
"resolveJsonModule": true,
"esModuleInterop": true,
Example 2: how to import a json string from a file in typescript
import {default as a} from "a.json";
a.primaryMain
"resolveJsonModule": true,
"esModuleInterop": true,
import {default as a} from "a.json";
a.primaryMain