How can I beautify JSON inside a document?
code-formatting, json, latex
Solution
I do embed code into lyx mostly as program listings imported from external textfiles. There are numerous options that you could apply to the program listing, from line numbers to word wraps and many more.
Problem
I was writing a LaTeX document, using Lyx as a front-end. I did not find a way to correctly format JSON data inside these documents. How can I beautify or format JSON data inside a Latex document?