Right syntax For Double Quoted JSON Value With Javascript Push

261 Views Asked by At

What would be the right syntax to cover value with double quotes to process posted one with json_decode in PHP?

jQuery('#envantereuruneklemediv tbody tr').each(function(index, element) {
       id=jQuery(element).find('.sec').attr('Id').split('_')[1];
    liste.push({"UrunAdi":jQuery('#uruneklemetablodiv input[name="UrunAdi_'+id).val()});
});

Result:

liste=[{"UrunAdi":"Value"}];

0

There are 0 best solutions below