k = {w:1,q:{t:[false,null,""]}}; a = JSON.stringify(k); y = JSON.parse(a); code example
Example: json.stringify parameters
var person={"first_name":"Tony","last_name":"Hawk","age":31};
console.log(JSON.stringify(person , null , 4));
//Output:
> "{
"first_name": "Tony",
"last_name": "Hawk",
"age": 31
}"