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

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.
