hello,
i have one json text file and i need to remove comma from line number 974
how can i achieve that
hello,
i have one json text file and i need to remove comma from line number 974
how can i achieve that
You can read the whole data as String
Read Text file: output is stored in StrData
Use two assign activities.
strData= StrData.TrimEnd(" ,]}".ToCharArray)
StrData=StrData+“}]}”
That would do what you need.
Or you can use
strData=strData.Remove(strData.LastIndexOf(“,”),1)
This would remove the last occurence of Comma, making your JSON body perfect.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.