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
Make sure the JSON output is in a tag.