2

How can I turn [object Object] to a string so I can see what's actually in the array. I tried toString() but that produced the same result as before

3

1 Answer 1

3

It's possible with the method JSON.stringify() :

 alert(JSON.stringify(yourObject));

Or with console.log() (visible in your debugger javascript, like Firebug) :

 console.log(yourObject);

Live Demo

Sign up to request clarification or add additional context in comments.

2 Comments

console.log with JSON.stringify will look horrible at the end. Don't mix them up if you don't really need to do it.
The OP just need to see his object. console.log is good enough.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.