如何使用 jquery 提醒以下 JSON 代码?
{
"results": {
"course": "CC167",
"books": {
"book": [
{
"-id": "585457",
"-title": "Beginning XNA 20 game programming : from novice to professional",
"-isbn": "1590599241",
"-borrowedcount": "16"
},
{
"-id": "325421",
"-title": "Red Hat Linux 6",
"-isbn": "0201354373",
"-borrowedcount": "17"
}
]
}
}
}
这是我的 json 文件内容,可以命名为result.json
. 我需要使用 JavaScript 或 jQuery 提醒或打印此文件的所有数据。我怎样才能做到这一点 ?