Basic HTML: How to Read JSON of Data – Where Do I Start? or Struggling with Basic HTML – How to Read

18 Replies, 535 Views

Short answer: HTML can’t read JSON. You need JavaScript.

Long answer: Use `fetch()` or `XMLHttpRequest` to get the JSON, then manipulate the DOM to display it.

For a tutorial, I’d recommend Traversy Media’s YouTube vid on JSON + JS. He explains it like you’re 5.

Also, JSONLint is a great tool to validate your JSON before trying to read it.

Messages In This Thread



Users browsing this thread: 1 Guest(s)