Locate your typings.d.ts file and add the following lines:
declare module "*.json" { const value: any; export default value; }
Otherwise you will get an error saying the compiler can’t find module filename.json.
Then you can include a .json file in your project. For example this file:
{ "version": "6.01" }
And you can read from such a file like this:
import * as versionData from '../version.json'; // ... if (versionData && (versionData).version) { this.version = (versionData).version; }