Answer the question
In order to leave comments, you need to log in
How to display blocks based on JSON file?
Hello everyone
. This is a question: I'm requesting a .json file with AJAX. My task is to parse it, get certain data from it and display it on .html. What tools can I use to do this?
Thanks
Answer the question
In order to leave comments, you need to log in
parse it using the JSON object 's built-in parse method
and then work with it like a normal JS object/array.
------------------
As for the output in html - there are a lot of options, even with the usual innerHTML
or using various libraries/frameworks (React, Angular, VueJS, jQuery, Knockout etc)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question