I JSON.stringify a json object by
JSON.stringify
result = JSON.stringify(message, my_json, 2)
The 2 in the argument above is su
2
If this is really for a user, better than just outputting text, you can use a library like this one https://github.com/padolsey/prettyprint.js to output it as an HTML table.