Replaced util.inspect with JSON.stringify for proper JSON output