Printing JSON files from the device to HTML

#1

I’ve made this code that creates a JSON file with some info in it.

let getInfo = JSON.stringify({
  status : GPIO.read(data);
});

File.write(getInfo, "info.json");

so the result is now inside the device

json
Is it possible to print the JSON data that’s inside the device to html?

#2

how is the HTML going to be delivered?

#3

I want to make a status log with index.html using the WiFi IP from ESP8266. The result would be such as the link below. It just needs to be printed on the homepage

https://learnwebcode.github.io/json-example/animals-1.json

If it’s too complicated to print the JSON file inside the device, then is there a way to save the JSON file to the computer’s directory folder?