cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

How to show json data in output UI

LY_10691079
8-Gravel

How to show json data in output UI

Hi ,

I have service through which I am getting output in Infotable format and there is a Json data in the output now I want to show that Json data in UI so for that I have used text area widget but I can't bind it so please help me here 

 

Regards,

Lav

6 REPLIES 6
Rocko
17-Peridot
(To:LY_10691079)

The type of your service result will have to be changed to STRING.

Hi @LY_10691079 ,

 

Not sure if any widget directly accepts Json as input type.

 

You may give the output type as 'String' in the service and use text area widget.

 

With regards

Yedukrishnan

 

 

Hi @Yedukrishnan 

 Thanks for your reply, I given that but the output I can't see in UI when I bind but if you can show any demo it will be good 

 

Thanks 

Lav

 

 

Hi @LY_10691079 ,

 

Please find the example as below.

1. Service output for JSON as STRING

Yedukrishnan_0-1707828155508.png

 

2. Service binding in mashup

Yedukrishnan_1-1707828282991.png

3. Output in UI

Yedukrishnan_2-1707828388524.png

 

With regards

Yedukrishnan

 

 

 

nmutter
14-Alexandrite
(To:Yedukrishnan)

additionaly can also be used with pretty print of the JSON object if needed. Check the docs of JSON.stringify with the additional params. E.g. to use 3 spaces for indentation could use:

JSON.stringify({abc:12,def:"text"}, undefined, 3)

 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#syntax 

企业微信截图_17082429875552.png

Top Tags