How to parse my json string in C#(4.0)using Newtonsoft.Json package?

前端 未结 4 489
温柔的废话
温柔的废话 2020-12-29 02:48

I am new to JSON.In my asp.net application i want to parse the json string.So, i have used Newtonsoft.Json package for reading and writing json data.Now, i can able to parse

4条回答
  •  醉话见心
    2020-12-29 03:03

    foreach (var data in dynObj.quizlist)
    {
        foreach (var data1 in data.QUIZ.QPROP)
        {
            Response.Write("Name" + ":" + data1.name + "
    "); Response.Write("Intro" + ":" + data1.intro + "
    "); Response.Write("Timeopen" + ":" + data1.timeopen + "
    "); Response.Write("Timeclose" + ":" + data1.timeclose + "
    "); Response.Write("Timelimit" + ":" + data1.timelimit + "
    "); Response.Write("Noofques" + ":" + data1.noofques + "
    "); foreach (var queprop in data1.QUESTION.QUEPROP) { Response.Write("Questiontext" + ":" + queprop.questiontext + "
    "); Response.Write("Mark" + ":" + queprop.mark + "
    "); } } }

提交回复
热议问题