how to read json file on our folder and put it on html

how to read json file on our folder and put it on html

I have json fil on my folder and I already install http-serve also to run locally but nothing show on my console chrome to fetch json data, any idea ??

I have json fil on my folder and I already install http-serve also to run locally but nothing show on my console chrome to fetch json data, any idea ??

here is my javascript to call it and show on my html and developers tool

  async function bestFetch() {
      try {
         const first = fetch('./data.json');
         let json = await first_name.json();
         console.log(first);
       }
       catch(e) {
         console.log('Error!', e);
       }
      }


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

JSON Tutorial For Beginners | What is JSON | Learning JSON with JavaScript

JSON Tutorial For Beginners | What is JSON | Learning JSON with JavaScript

Javascript | How To Covert Javascript Array To JSON

In this example, we will see How To Covert Javascript Array To JSON. We can convert Javascript array to json using JSON.stringify() method. At some point in your time, whatever developer you are, you need to deal with JSON data. JSON stands for Javascript Object Notation. Exchange data between client and server is straightforward using JSON.

JavaScript | Convert JSON String to JSON Object

Convert JSON string to JSON object javascript. This tutorial is the purpose to explain the best ways and examples for convert JSON string to a JSON object.