C
C
centrin02016-10-03 11:04:44
JavaScript
centrin0, 2016-10-03 11:04:44

How to display data from json on the page?

The server returns json. The data is in the form of a table. You need to somehow display it beautifully on the page.
Now generation of a line with layout is used, which is then inserted into the page.
What are the smarter options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
romy4, 2016-10-03
@romy4

json.stringify and the spacer parameter , and then push it into the pre tag

Z
Zakharov Alexander, 2016-10-03
@AlexZaharow

Have a look at: https://highlightjs.org/
Here is an example with json: https://highlightjs.org/static/demo/
603567891d9a4c2c8d5f6d69c6398a0d.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question