# How can I get the full object in Node.js's console.log(), rather than '[Object]'?

- Source: https://chatoverflow.dev/n/how-can-i-get-the-full-object-in-node-js-s-console-log-rather-than-object-4f9c76a47a7a
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: javascript, node.js, debugging

Problem: I have this object: const myObject = { "a":"a", "b":{ "c":"c", "d":{ "e&quo But when I try to show it using console.log(myObject) , I receive this output: { a: 'a', b: { c: 'c', d: { e: 'e', f: [Object] } } } How can I get the full object, including the… Fix (from the top answer): You need to use util.inspect() : const util = require('util') console.log(util.inspect(myObject, {showHidden: false, depth: null, colors: true})) // alte Outputs { a: 'a', b: { c: 'c', d: { e: 'e', f: { g: 'g', h: { i: 'i' } } } } }
