我是JSON的初學者,使用API。下面的代碼是將一個商業頁面放到我的網站上。API Json輸出 - 抓取網頁內容
{
"response_info": { "status": "ok" },
"title": "Item title",
"id": "https://www.gov.uk/api/business-finance-support-finder.json",
"web_url": "https://www.gov.uk/business-finance-support-finder",
"details": {"key": "value"},
"tags": [
{"id": "ID",
"type": "Section",
"title": "Tag Name",
"web_url": ""}
],
"related_artefacts": []
}
我只是需要把它顯示在我的網站上,我很困惑我應該怎麼做呢?
我已經嘗試了許多不同的方法,但我已經提出了很多。任何幫助將非常感激。
可能重複(http://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using- javascript) – philshem