A
A
A person from Kazakhstan2019-05-11 12:46:21
JavaScript
A person from Kazakhstan, 2019-05-11 12:46:21

How to parse json with huge content?

For example, I decided to get confused with json: https://codepen.io/topicstarter/pen/zQBxWZ
Everything is clear when it is clear .. but when json arrives from the server in several thousand lines, how do they do it in this case?
This is what a tin .. it is necessary to output each line somewhere .. a bunch of cycles and all sorts of generations?
Yes, and in my case, is it possible to do it somehow easier .. not because I'm stupid there?
It is impossible to know the json structure and how in this case they guess or generate the output?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Proskurin, 2019-05-11
@LenovoId

json to several thousand lines, how do you do it in this case?

Usually they do pagination, otherwise the gui will slow down.
It is more convenient to use a framework (Vue, React), or some kind of template engine (mustache, underscore, etc.).
UPD: here is an example on undersocre https://jsfiddle.net/Vlad_IT/c5mkwxp8/ I made the field with sites an array there, so that it would be more convenient to go through the loop.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question