Attach JSON File to Jira Tickets

Hi there,
I’d like to create a workflow which attaches JSON files to an existent Jira ticket using the Jira plugin. The problem is that I have to encode the json file as base64 in order to attach it to the ticket. As a consequence, all the formatting/structure is messed up once it is attached to the ticket and it’s really hard to read for someone. Has anyone an idea how to solve this issue?