json object stirng code example
Example 1: Javascript object to JSON string
var person={"first_name":"Tony","last_name":"Hawk","age":31};
var personJSONString=JSON.stringify(person);
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)
// y => { x: { y: { z: null } } }
OR
let x = {}
Object.deep.(x, 'x.y.z', 10)
console.log(x)
// x => { x: { y: { z: 10 } } }