От телеграфа получаю ответ в виде JSON
{"ok":true,"result":{"path":"Test-manager-12-30","url":"https://telegra.ph/Test-manager-12-30","title":"Test manager","description":"You idiot\nYou Idiot\nYou idiot\nYou idiot","author_name":"vasa petyx","content":[{"tag":"p","children":["You idiot"]},{"tag":"p","children":[{"tag":"strong","children":["You Idiot"]}]},{"tag":"h3","attrs":{"id":"You-idiot"},"children":["You idiot"]},{"tag":"h4","attrs":{"id":"You-idiot"},"children":["You idiot"]},{"tag":"blockquote","children":["You idiot"]}],"views":1}}
Из этой строки нужно извлечь
{"tag":"p","children":["You idiot"]},{"tag":"p","children":[{"tag":"strong","children":["You Idiot"]}]},{"tag":"h3","attrs":{"id":"You-idiot"},"children":["You idiot"]},{"tag":"h4","attrs":{"id":"You-idiot"},"children":["You idiot"]},{"tag":"blockquote","children":["You idiot"]}
В виде строки. Была идея разбить строку на 2 массива с помощью Split, но он на вход принимает только 1 символ. Вариант с "просто распарсить JSON" не подходит. Т.к мне нужен именно кусок из ответа сервера. Сейчас код выглядит вот так `var temp = JsonConvert.DeserializeObject(answer);
Content[] content = temp.result.content;
for (int i = 0; i < content.Length; i++)
{
richTextBox1.AppendText("{\"tag\":\"" + content[i].tag.ToString() + "\",\"children\": [\"");
for (int a = 0; a < content[i].children.Length; a++)
{
richTextBox1.AppendText(content[i].children[a].ToString());
}
richTextBox1.AppendText("\"]},");
}`
Но он не правильно работает
загрузил json на сайт, чтоб было наглядно видно о чём я говорю jsoneditoronline.org/?id=0ce659dc203943d7a8fb1657aca64624
