Reading Local JSON present in an Angular 2 or 4 project

Recently I have been working on an angular 2 project which required reading of a local static JSON file present in the project folder itself. I searched over internet to find a way to read JSON and this is what I got: private _productURL = ‘api/products/products.json’; getProducts(): Observable<any> { return this._http.get(this._productURL).map((response : Response) => <any>…