Answer the question
In order to leave comments, you need to log in
How to parse JSON and build a table from it?
There is a task to build a table according to data from json, and insert a tree into the DOM.
Json is an array of objects of the form:
[
{"ip":"::1","time":"2016-12-17 12:12:59","request":"GET /insert HTTP/1.1","name":"access.log"},
{"ip":"::1","time":"2016-12-17 12:12:59","request":"GET /insert HTTP/1.1","name":"access.log"},
{"ip":"::1","time":"2016-12-17 12:12:59","request":"GET /insert HTTP/1.1","name":"access.log"},
{"ip":"::1","time":"2016-12-17 12:12:59","request":"GET /insert HTTP/1.1","name":"access.log"}
]
Answer the question
In order to leave comments, you need to log in
A web developer must be able to refrain from building bicycles in the first place.
Here is the source . Remove ajax-component and use it. There are also a bunch of ready-made libraries.
If this is an educational task, then I advise you to start studying yesterday, and not by the end of the semester.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question