Hello Everyone,

Anyone have already passed this feature? How to indent JSON when exporting to a file? At this point everything is comming in just one line...


Best regards,

Hi Tiago,

To my knowledge, there's nothing that will do this for you out-of-the-box. It would probably be too complex for an action, so your best bet will probably be to find a library that does this, or write it and wrap it in a extension to use within a module.

Tiago,

https://www.outsystems.com/forge/component-overview/969/json-pretty-format

This is a component that I have used to prettify JSON to show on a screen. I would think you can use this to export it to a file.


Andres Moreno

Hello. Probably I'll integrate in c# something like it's here:

https://stackoverflow.com/questions/42343342/can-i-use-json-stringify-in-code-behind-of-an-asp-net-project

Because I need this on server side where I can send a string all in same line and get back all formated to put inside the file.

Andres Moreno wrote:

Tiago,

https://www.outsystems.com/forge/component-overview/969/json-pretty-format

This is a component that I have used to prettify JSON to show on a screen. I would think you can use this to export it to a file.


Andres Moreno

This is very useful. Thank you.