I want to understand the basic differences clearly between Javascript object and JSON string.
Let\'s say I create the following JS variable:
var test
Q1 - in JS you only need to use quotes if the key is a reserved word or if it would otherwise be an illegal token. In JSON you MUST always use double quotes on key names.
Q2 - the jsonString
is a serialised version of the input object ...
Q3 - which may be deserialised to an identical looking object using JSON.parse()