How to output an object as a readable string with formatting (structured like with <pre>) ?
No jQuery possible.
My object looks like this using console.log.
Object
title: "Another sting"
type: "tree"
options: Object
paging: "20"
structuretype: "1"
columns: Object
...
description: "This is a string"
...
What is the best to convert it to a structured string?
My attempt:
I tried using stringify() to get the JSON structure. I could then write my own parser, but maybe there are already any implementations?