584
Views
3
Comments
Format Text to json pretty format like
Question

Hi everyone, i'm retrieving a text data and i need to show it in like a json pretty format.

ex: i have this

[{"Example1":"test1","Example2":"test2","Example3":"test3"}] 

that is a text data type

and i need that looks like this

[ 
   { 
      "Example1":"test1",
      "Example2":"test2",
      "Example3":"test3"
   }
]

i don't know if there is a way to do it, but i was thinking in search for the "," charcather and add a newline(), but i don't really know how to do it. Thanks in advance.

Btw is in outsystems web 11.

2022-02-21 18-52-02
Carlos Lopez

Hi Nicolas


Check out this forge component. I think it will meet your needs without any major integration hassles.


Hope this helps!

   CLSJ

2018-12-09 19-13-19
Tiago Gomes

Hello Nicolás,

The component that Carlos shared is client sided. If you're looking for server sided one I created this one. It's helpful, for example, if you want to download the JSON formatted to a file.

Cheers!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.