JSON rendering

HTML

<div id="results1"></div>
<div id="results2"></div>
<div id="results3"></div>

JavaScript

$(document).ready(function() {


var theData= [{"thename":"bao",
       "complete?" : "YES"
  }
];

var theText = "hello world<BR>";
$("#results1").html(theText);

theText = theData[0].thename;
$("#results2").html(theText + "<BR>");

// 
theText = theData[0]['complete?'];
$("#results3").html(theText + "!<BR>");
});