typescript import json file as object 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