Maybe my problem is simple because there are many similar requests, but I can't find the solution to my problem.
I build an HTML-website which makes a form request to a server. The server responses with a JSON text to this iframe on the website:
<iframe name="json_result" src=""></iframe>
The problem is, that this json string is on one line and with that not human-readable. How can I make it pretty? (with breaks and tabs, like firefox is doing it normally by its own in a new tab)
I know there are solutions like JSON.stringify() or google/code-prettify, but I don't know how to get the response json text from the iframe into these functions or maybe build some css classes around the iframe which formats the incoming json automatically?