Here is my JSON
var nodeclienthash={
socket:null,
init : function() {
// initialize socket.io
this.socket = new io.Socket(this.config.host, {port: this.config.port, rememberTransport: false});
}
};
For now i want to create only two object , how should i create that ?
function()construct, thevarkeyword, the=token, statements... none of these are valid JSON. Do not confuse the JavaScript object literal syntax with the JSON specification. All valid JSON strings are valid JavaScript expressions; not all valid JavaScript expressions are valid JSON strings.