I’ve had a similar experience with jQuery when trying to alert or display object data directly in the UI. If you want to pull a specific value from an object, you’ll need to access a property directly, like obj.name
or obj['email']
. If you don’t specify which part you need, JavaScript just defaults to that [object Object]
message. It’s basically JavaScript being unsure of what you want to display.