JSON ENCODE view - multilines
JSON ENCODE view - multilines
hykl
Posts: 48Questions: 19Answers: 5
in DataTables
Hello, in mysql have text:
{"id":"133","calendar":"2016-12","uzivatel":"","file_pdf":"135"}
I want for print view text in datatable in beautiful print:
{
"id":"133",
"calendar":"2016-12",
"uzivatel":"",
"file_pdf":"135"
}
How?
Thank you.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
What you are looking for is a "pretty print". There are lots available in Javascript if you do a google search for them. For example: https://www.npmjs.com/package/prettyjson .
Allan
thank you, solved :-)