I have one json file named fake.json inside assets in my angular application. Path of this file is like this.
MyApp => s
In order to read or write data from a local JSON file, you can use json-server.
npm i json-server.json-server --watch fake.json.http://localhost:3000/Follow the documentation link: https://www.npmjs.com/package/json-server