<html>
<body>
<h2>JavaScript訪問JSON數據</h2>
<p>
姓名: <span id="jname"></span><br />
網址: <span id="jurl"></span><br />
內容: <span id="jcontent"></span><br />
</p>
<script type="text/javascript">
var JSONObject= {
"name":"",
"url":"http://",
"content":".NET JavaScript jQuery"};
document.getElementById("jname").innerHTML=JSONObject.name
document.getElementById("jurl").innerHTML=JSONObject.url
document.getElementById("jcontent").innerHTML=JSONObject.content
</script>
</body>
</html>