I have code which return a single Node.
var items = document.querySelectorAll('ul');
return items[0];
How can I convert it to JSON? For me method JSON.parse() doesn't work. It takes not Node but string object.
I have code which return a single Node.
var items = document.querySelectorAll('ul');
return items[0];
How can I convert it to JSON? For me method JSON.parse() doesn't work. It takes not Node but string object.