Which method is commonly used to send data as JSON using Fetch API?
- fetch.post()
- fetch.data()
- fetch.sendJSON()
- fetch()
The fetch() method is commonly used to send data as JSON using the Fetch API. To send JSON data, you can create a request object and use the JSON.stringify() method to convert your data into a JSON string before sending it.
Loading...