console.log will reference .toString() on any objects that you pass to it. The default implementation of toString() for simple Objects is to return "[Object object]" , which is silly, but also joyful.
If you want to see the full structure of an object, stringify it:
console.log(JSON.stringify(req.params.photoreference));
You can request JSON.stringify render the human-readable version using 2 spaces for indentation:
console.log(JSON.stringify(req.params.photoreference, null, 2))
source share