About 46,300 results
Open links in new tab
  1. Using the Fetch API - Web APIs | MDN

    Aug 20, 2025 · The fetch() function returns a Promise which is fulfilled with a Response object representing the server's response. You can then check the request status and extract the body of …

  2. How to read JSON file with fetch() in javascript? - Stack Overflow

    How can I read local JSON file with fetch function in javascript? I have JSON file with some dump data and one function which read JSON file on server. For example : readJson () { console.log (t...

  3. Read JSON File Using JavaScript - GeeksforGeeks

    Jan 17, 2026 · In JavaScript, there are multiple ways to read and parse JSON files. These methods can be used both in browser environments and in Node.js. 1. Using the fetch () API. The fetch () API …

  4. JavaScript Fetch API - W3Schools

    The Fetch API interface allows web browser to make HTTP requests to web servers. 😀 No need for XMLHttpRequest anymore. fetch() is an ES6 feature. ES6 is fully supported in all modern browsers …

  5. How to Read a Local JSON File with fetch() in JavaScript: Step-by …

    Feb 16, 2026 · In this guide, we’ll walk through exactly how to read a local JSON file using fetch() in JavaScript. We’ll cover setup, handling responses, parsing data, rendering it to the DOM, and …

  6. JavaScript Fetch API

    In this tutorial, you'll learn about the JavaScript Fetch API to make asynchronous HTTP requests in the web browsers.

  7. How to Read a JSON File in JavaScript – Reading JSON in JS

    Aug 2, 2022 · In this article, we have learned how to read a JSON file in JavaScript and the possible errors we might encounter when using each method. It's best to use the fetch API method when you …

  8. Handle JSON Responses with the JavaScript fetch API

    Dec 12, 2024 · Handling JSON responses using the JavaScript fetch API is crucial for web developers, as it allows for seamless data retrieval from servers. This tutorial covers the basics of using fetch to …

  9. How To Fetch Data From JSON File In JavaScript

    Mar 7, 2025 · In this post, I’ll show you how to fetch data from a JSON file using JavaScript. I’ll break down each step, provide code examples, and answer common questions along the way.

  10. How to Use fetch () with JSON - Dmitri Pavlutin Blog

    await fetch('/api/names') starts a GET request, and returns a response object when the request completes. Then, from the server response, you can extract the JSON into a plain JavaScript object …