N
N
Nikita Shchypylov2017-04-11 17:32:07
JavaScript
Nikita Shchypylov, 2017-04-11 17:32:07

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

1 answer(s)
V
Vlad Feninets, 2017-04-11
@fnnzzz

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 question

Ask a Question

731 491 924 answers to any question