[object object] json code example
Example 1: turn object into string javascript
var obj = {a: "a", b: "b" };
var string = JSON.stringify(obj);
Example 2: json deep dot
Prototype code is available here
https://gist.github.com/Cirilord/d0d3f0ba7171deed26bfffe4787d6e0b
Example
let y = {}
Object.deep.(y, 'x.y.z')
console.log(y)
OR
let x = {}
Object.deep.(x, 'x.y.z', 10)
console.log(x)
Example 3: how to use json stringify in javascript
var Num=[1,2,3,4,5,6]
console.log("The Numbers Are "+JSON.stringify(Num))
Example 4: json object
var myObj, x;
myObj = {"name":"John", "age":30, "car":null};
x = myObj.name;
document.getElementById("demo").innerHTML = x;