user5047085
user5047085

Reputation:

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

Upvotes: 3

Views: 11839

Answers (1)

Erik Kalkoken
Erik Kalkoken

Reputation: 32864

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.

Upvotes: 4

Related Questions