Search code examples
jsonslack

Prettier JSON on slack messages


Is there a way to make JSON a bit more readable and less dull on Slack? When use simple 3 backticks, I just see:

enter image description here


Solution

  • Slack has no detection and subsequent coloring of JSON within its code formatting for messages.

    But you can have just if you send your JSON as "Code Snippet" via files.upload instead of a message text. Make sure to set filetype to javascript.

    Btw. this is the intended way for posting larger texts on Slack.