Join strings

list=[“mysore”, “banglore”,“chennai”]
How print this list using string.Join

String.Join(“,”,YourlistVariable)

I want [ and ] also

Give a check to serialize the list into JSON and use serialized string

I didn’t get you

@KarthikBallary
Give a try: Use assign activity

Newtonsoft.Json.JsonConvert.SerializeObject(yourListVar)

Maybe some fixes are to do afterwards
Make sure the uiPath.WebAPI.Activites are referenced and Newtonsoft.Json is imported by the namespaces

String.Join(" and ",YourlistVariable)