I would like to convert a nested array of Objects into a String. How do I do this?
I have tried the .toString() method but that just returns [Object object], which is not what I want.
My array looks like this:
[[
{"incr":261,"decr":547},
{"incr":259,"decr":549}
],
[{"incr":254,"decr":547}]
]
And I want to be able to convert it into a String that looks exactly like that.
spacethird argument (developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…) of theJSON.stringify()to format the result with identation:JSON.stringify(data, null, 2)