Im getting returned JSON like this
{"d":{"questions":[],"stuff":"value"}}
how do I check for questions and do something if its blank/empty IE the [] with nothing inside?
This doesn't work:
var msg = data.d.IsErrorExists;
var quetions = data.d.questions;
if (msg == 'false' && questions === '[]') {
//do stuff based on msg=false and questions=[]
}