How to get only text

Hi ,

I have a input text as "
[
“hello”,
“world”
]

I want an output as
output1- hello
output2 -world

kindly help to resolve

array(0).tostring+Environment.NewLine+array(1).tostring
use this inside for each

inside for each
item(0).tostring+Environment.NewLine+item(1).tostring
type of arg for each is system.string
is that correct?

@vaish

the string can be processed as a JSON Array:
grafik

Access first element:
grafik

find starter help here:
ParseJSONArray.xaml (5.9 KB)

grafik

ensure that the UiPath.WebApi.Activities is referenced via the dependency manager

1 Like

no arg is string

I am getting this error
Unable to cast object of type ‘System.Char’ to type ‘System.String’.

hey thanks for the solution … it works

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.