I am using React application I have an issue I want to validate the JSON file is empty or not, I know how to validate {} this kind empty, But my JSON structure is
{
name:"",
email:"",
dob:"",
password:""
}
I have default structure value how to validation inside the value are empty or not like whole empty check likewise
{ name:undefined, email:undefined, dob:undefined, password:undefined }then you can check if it's undefined or not.