var data = {
"obj":[{
"name": "John",
"age": "10",
"Alias": "Person",
"where":[{"City1":"foo", "City2":"foo2"}]
},{
"name": "Mike",
"age": "",
"Alias": "Person",
"where":[{"City1":"test1", "City2":"test2"}]
}]
}
data.obj[0].Alias and data.obj[1].Alias is duplicate.
Also data.obj[1].age is empty.
if empty or duplicate value exists in JSON object, return false.
How can i check empty and duplicate value?