I have converted XML into json as below for my C# code
string xml = "<delete><id>" + id + "</id></delete>";
string json = "{'delete': { 'id': '\' + id + \'' }}";
it gives me error as -
Cannot parse provided JSON: JSON Parse Error: char=�,position=0 AFTER='�' BEFORE='���������������������������������'",
Complete Code -
string id = "Supporting Documents/SUP000008/COM-1AMLYNI01D0-0001/DeleteIssue/NGDMS_Engineering_Update.pdf";
string json = "{'delete': { 'id': '\' + id + \'' }}";
HttpContent content = new StringContent(json, Encoding.UTF32, "application/json");
HttpResponseMessage response = await Client.Value.PostAsync(uri.OriginalString, content); // gives error
What is the correct conversion of above xml to json for C# code ?