Categories JavaScript Answers How to print JSON data in JavaScript console.log? Post author By John Au-Yeung Post date October 2, 2022 No Comments on How to print JSON data in JavaScript console.log? Spread the love To print JSON data in JavaScript console.log, we use the '%j' option. For instance, we write console.log("%j", jsonObj); to call console.log with "%j" and the jsonObj object to print JSON objects with console.log. Related Posts How to access nested JSON data with JavaScript?Sometimes, we want to access nested JSON data with JavaScript. In this article, we'll look… How to add a variable to console.log with JavaScript?Sometimes, we want to add a variable to console.log with JavaScript. In this article, we'll… How to print object array in JavaScript?Sometimes, we want to print object array in JavaScript. In this article, we'll look at… By John Au-Yeung Web developer specializing in React, Vue, and front end development. View Archive → ← How to compare two arrays of objects, and exclude the elements who match values into new array in JavaScript? → How to loop through array backwards with forEach with JavaScript? Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Current ye@r * Leave this field empty