converting innerxml data to json

Dec 18 2017 10:00 AM
  bellow this one xml format, 
http://api.q-tickets.com/V5.0/getshowstheatersbymovieidjson?MovieId=23561 
 
 
here inner xml i am getting data how can i make list of that i want that data in json format iam getting error converting 
 
XmlDocument doc = new XmlDocument();
doc.LoadXml(result);
string jsonText = JsonConvert.SerializeXmlNode(doc);
// To convert JSON text contained in string json into an XML node
XmlDocument doc1 = JsonConvert.DeserializeXmlNode(jsonText);
String datlist = doc1.ChildNodes[0].FirstChild.FirstChild.InnerXml.ToString();
var jsonresultz = JsonConvert.DeserializeObject<RootObjects>(datlist); 

Answers (2)