无法解析Json数据---- JavaScript中的学生数据(Key)和数据(Key)

时间:2018-12-21 09:42:39

标签: javascript json

我无法使用javascript解析此数据,我想动态获取studentdata和问题数据...

代码:

{
    "studentdata": "[{\"studentid\":3,\"attemptid\":\"724\",\"tokenid\":\"dc049c8429af5ec2b8e7fe8a0b20d4a3\"}]",
    "quizid": "5",
    "tap": false,
    "body": "",
    "data": "[{\"question\":\"If a and b are negative numbers, and b - a is negative\",\"options\":[\"True\",\"False\"],\"answer\":[true,false]},{\"question\":\"The equation 2x 7 \u003d 2(x 5) has one solution\",\"options\":[\"True\",\"False\"],\"answer\":[false,true]},{\"question\":\"If f(x)\u003dsqrt(1-x), then f(-3)\u003d2\",\"options\":[\"True\",\"False\"],\"answer\":[true,false]},{\"question\":\"The reciprocal of 0 is equal to 0\",\"options\":[\"True\",\"False\"],\"answer\":[false,true]},{\"question\":\"The additive inverse of -10 is equal to 10\",\"options\":[\"True\",\"False\"],\"answer\":[true,false]}]",
    "title": "Quiz"
}

任何帮助或建议将不胜感激。

谢谢-

1 个答案:

答案 0 :(得分:0)

StatefulService