Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How to check JSON object or JS object is empty? | AEM Community Blog Seeding

Avatar

Administrator

8/17/22

BlogImage.jpg

How to check JSON object or JS object is empty? by Rashid jorvee

Abstract

if (!Object.keys(jsonObj).length === 0) {
console.log("JSON object have some keys and values");
} else {
console.log("JSON object is empty");
}


Here jsonObj is JSON or JavaScript object.

Read Full Blog

How to check JSON object or JS object is empty?

Q&A

Please use this thread to ask the related questions.