JS | Log object in JSON format to the console