如何显示包含对象详细信息的数组元素详细信息

时间:2014-08-18 09:53:46

标签: json object

我必须从.json文件中检索数据。在显示详细信息时,我无法显示位于数组中的对象详细信息

上传.json

{
 "data":{
  "questions":{
           "level":[
              {
                 "question":[
                    {
                       "title":"What does GRC stand for?",
                       "answer":[
                          "Global Technical System",
                          "Global Trade Services",
                          {
                             "_correct":"1",
                             "__text":"Governance, Risk, and Compliance"
                          },
                          "Global Testing Site"
                       ]
                    },
                    {
                       "title":"Which is not an SAP® version?",
                       "answer":[
                          "4.6C",
                          {
                             "_correct":"1",
                             "__text":"4.7D"
                          },
                          "ECC5",
                          "3.1H"
                       ]
                    },
                    {
                       "title":"What does BEX stand for?",
                       "answer":[
                          {
                             "_correct":"1",
                             "__text":"Business Explorer"
                          },
                          "Business Executive Exchange",
                          "Business Exhibition"
                       ]
                    },
                    {
                       "title":"Who is the CEO of SAP®?",
                       "answer":[
                          {
                             "_correct":"1",
                             "__text":"Jim Hagemann Snabe and Bill MCDermott are joint co-CEOs"
                          },
                          "Werner Brandt",
                          "Henning Kagermann",
                          "Hasso Plattner"
                       ]
                    },        
                    {
                       "title":"When was SAP® founded?",
                       "answer":[
                          "1962",
                          {
                             "_correct":"1",
                             "__text":"1972"
                          },
                          "1982"
                       ]
                    }
                 ],
                 "_difficulty":"0",
                 "_title":"SAP® General (Level 1)",
                 "_points_per_question":"10",
                 "_seconds_per_question":"30",
                 "_total_questions":"5"
              }
         }
    }
  }

这里我可以检索答案数组详细信息,但我无法显示_text,_更正详细信息。任何人都可以建议显示细节的正确方法

0 个答案:

没有答案