When I have a lot of objects together and I run it using nodejs in cmd It says the [Object] instead of the actual contents of the object.
here is an example from my command prompt 
myObject = {
'698045139763069009':{ users: { '560433156377804828': {name: "mark", age: "28"}},info: {} }
}
console.log(myObject);
code here ^^^
same thing happens with an array
myObject = {
'698045139763069009':{ users: { '560433156377804828': ["mark", 28]},info: {} }
}
console.log(myObject);

and a screen shot ^^^
help would be appreciated! thanks
Looks like your console doesn't print nested objects.
Change console.log(someObject) to console.log(JSON.stringify(someObject)).
Note that it will give error if the object is cyclic / has circular references.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With