How to add comma after writing json string

hello,

I have json in “item” of for each and json writing value till “}” this.
but need to add one comma after brace which will look like this },
how can i achieve that
**my json in string : **
{
“status”: “PASS”,
“testKey”: “P003324-88”,
“start”: “2023-02-13T16:59:03+01:00”,
“finish”: “2023-02-13T17:12:17+01:00”,
“executedBy”: “abc”,
“defects”: ,
“evidences”: ,
“steps”: [
{
“status”: “PASS”,
“defects”: ,
“evidences”:
},
{
“status”: “PASS”,
“defects”: ,
“evidences”:
}
],
“assignee”: ,
“testEnvironments”: ,
“iterations”: ,
“comment”: “”
}
expected :
{
“status”: “PASS”,
“testKey”: “P003324-88”,
“start”: “2023-02-13T16:59:03+01:00”,
“finish”: “2023-02-13T17:12:17+01:00”,
“executedBy”: “abc”,
“defects”: ,
“evidences”: ,
“steps”: [
{
“status”: “PASS”,
“defects”: ,
“evidences”:
},
{
“status”: “PASS”,
“defects”: ,
“evidences”:
}
],
“assignee”: ,
“testEnvironments”: ,
“iterations”: ,
“comment”: “”
},

help me on same i need this last comma

Hi @Mathkar_kunal

If you have JSON Data in a String Array kind of format.
String.Join(“,”,YourStringArray)

That should help.

String = String.Insert(String.Length - 1, “,”)
Hope this helps