I have the following string (actually with more elements)
string content= " {
element1: one
element2: two
element3:three
}
{
element1: uno
element2: dos
element3:tres
}";
and I need to process this string element by element
(an element is what is inside a { and a } , in the above case two elements but it can contain more)
Now, I am thinking of doing the usual IndexOf to find { and } and then extracting the substring one by one.
My question is: is there a more efficient way of doing this?