how i can compare two values json return true in is delivered property and i want to compare it with string
$.getJSON('/SalesInvoice/GetSI/' + $('#SearchSI').val(), function (data) {
     if (data.ex == "OK") {
         if(data.Voucher.IsDelivered == "true")
         {
             alert('hi');
         };
}
 
     
     
    