How can I convert a JavaScript object into a string?
Example:
var o = {a:1, b:2} console.log(o) console.log(\'Item: \' + o)
Output:
For non-nested objects:
Object.entries(o).map(x=>x.join(":")).join("\r\n")