我想首先在html文件中使用javascript将一些JSON字符串化,然后把它放在html中,然后我在Nodejs中使用cheeriojs和request解析html,这里我想用JSON.parse()方法得到那个json,我该怎么做呢?下面是我的HTML代码: //stringify json
var nav = {</
需要帮助解析json文件。我需要从下面的文件中提取“选项”。, "choices": ["Too live happily", "To give to the greater good"], "correctAnswer":1}nodejs脚本:fs.readFile(__dirname + "/lib/questions.json&quo