I have a json file in the following format:
{"Day": [{"NameofDay": "Beginning of year"}]}
If NameofDay has some text in it other than None, then I have to print that text. Else, I should not do anything.
I tried with the following code but I am not sure on how to add condition to it.
This is the first time I am using javascript. Any guidance would be really very helpful to me.
function drawMessage(){
var tt = $.ajax({
url: "findDay.json",
dataType: "json",
async: false
});
var jsonData = tt.responseJSON;
var data = new google.visualization.DataTable(jsonData);
}