debug json angular code example
Example 1: angular read config from json
{ "compilerOptions": { "resolveJsonModule": true, "esModuleInterop": true } }
add this to tsconfig.json, then read json by importing like normal module:
import '../assets/test.json'
Example 2: angular json and cli json file
npm install -g @angular/cli
npm install @angular/cli