Answer the question
In order to leave comments, you need to log in
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
json.stringify and the spacer parameter , and then push it into the pre tag
Have a look at: https://highlightjs.org/
Here is an example with json: https://highlightjs.org/static/demo/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question