Which means you cannot iterate over it and as such you cannot use in a for each.
In .NET programming there is the concept of object inheritence.
What this means is that certain data types can inherit others, that might sound confusing but the way I try to describe it is to compare it to classifications of life.
We could say something is an Ape or a Dolphin or a Dog and these are give us a strong idea of what they are but they aren’t perfectly exact, an Ape could be a Chimpanzee, a Dog could be a labrador which would define them more strongly. A lab ‘inherits’ all the attributes of being a dog, but has perhaps some more traits.
If you zoom further out all those animals are mammals. This again classifies certain key characteristics but its still quite a vague / flexible type to give something.
Back to programming, for anything to be used in a For Each it needs to be able to be iterated over and this behaviour is defined by it inheriting the ‘IEnumerable’ interface much like a dog inherits the mammal type.
Lists inherit IEnumberable, Collections do, Arrays do etc etc.
String does not inherit IEnumerable, its just a singular object with one string in it. I realize you as a human see it as several strings but your data typing shows it is one big string.
You need to fix this, this can be done by doing a ‘Split’ on your string, stating the delimiter, but yours has the curly brackets so it maybe needs to be deserialized.
It looks like it used to be an IEnumerable but you forced it into a normal string along the way, perhaps when you did the object .ToString?
Maybe you can fix this simply by casting the object appropriately, we’d need to know the underlying type of the Object.
(for context every single type inherits ‘Object’, its the most basic type you can have an represents anything, as such you cannot really do much with it.)