I have this following lines in my page, and i want it to converti into javascript array/object. But I cannot help myself
<script language="javascript" src="json2.js"></script>
<script>
json={"status":"error","message":"there was an error","type":"unclassified"};
alert(json.stringify(json));
</script>
am i missing something?, i want to get the "error"
value when i do alert(newvar.error)
and i want to get the part "there was an error" when i do alert(newvar.message)
that mean, the variable json, should be converted into javascript objects.