I have a JSON string that starts and ends with curly brackets \"{}\".
I then deserialize the object but when this is done I see that I now have double curly brackets
In my case I want
"object" : {
[
{"a"="b"},
{"a"="b"},
{"a"="b"},
[
{"a"="b"},
{"a"="b"}
]
]
}
To
"object" : {
[
{"a"="b"},
{"a"="b"},
{"a"="b"},
{"a"="b"},
{"a"="b"}
]
}
So Simple I using foreach like this
alpha = @"[{'a'='b'},{'a'='b'}]";
JArray arrayObject = JArray.Parse(alpha);
foreach (var item in arrayObject)
{
obj["object"].Last.AddAfterSelf(item);
}