title: java JSON object in javascript
body: <p>I have java JSON object, like shown in the code, I am assigning this java JSON object to a javascript variable. I am using Dojo v1.8, used the stringify method on this javascript variable, I printed this javascript variable, in the console I can see the data in it. But when I access the property in it, it is not returning anything (testJSONData.KEY1)</p>
  
  <pre><code>&lt;%
  JSONObject myJSON = request.getJSON();
  %&gt;
  
  &lt;script type="text/javascript"&gt;
  var testJSONData = &lt;%=myJSON %&gt;;
  
  
  testJSONDataObj = JSON.stringify(testJSONData);
  console.log("testJSONDataObj details::"+ testJSONDataObj);
  console.log("testJSONData id::"+ testJSONData.KEY1);
  
  &lt;/script&gt;
  </code></pre>
  
  <p>console:</p>
  
  <pre><code>testJSONDataObj details::{"KEY1":"value1","KEY2":"value2"} 
  </code></pre>