TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Phaneendra Chakravaram
NA
490
100.1k
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);
Reply
Answers (
2
)
ASP.NET MVC - Prevent duplicate field in EXCEL data upload
computer programming in C#