<script>
var myJSONObject = {"onw": [ {"name": "nitin", "age": "31", "sal": "4000"},{"name1": "nilesh", "age": "11", "sal": "14000"}]};
document.write(myJSONObject['onw']);
//document.write(myJSONObject.onw.name);
</script>
o/p:未定义
<script>
var myJSONObject = {"onw": [ {"name": "nitin", "age": "31", "sal": "4000"},{"name1": "nilesh", "age": "11", "sal": "14000"}]};
document.write(myJSONObject['onw']);
//document.write(myJSONObject.onw.name);
</script>
o/p:未定义