How to transform single line output into multiline

I am trying to create a simple app which returns a response from an API call when the user clicks a button. However currently the response only presents itself in single line JSON. When initialising the call in the API connector it outputs a raw value like this.

I want this raw output to be shown to the user using my app exactly how it’s shown there.
Currently the only way I can get the app to show the full response is to set the data type to Text instead of JSON, but this means that pulling data from that will always result in messy raw data rather than the formatted data in the picture.

Is there any way I can get the full formatted response to show up when I click the button that initialises the call?