How to keep or preserve JSON structure within the javascript [.js] file?

 const obj = {


    key1: "val1",

    key2: "value2"

};


var json = JSON.stringify(obj);

Comments

Popular Posts