how to check json file is empty or not in node js code example Example: express check if object is empty if(Object.keys(obj).length === 0) { }