I have this Json
var data = "{"2144":{"quantity":"350"},"2095":{"quantity":"100"}}"
how can i get each value like this order using jquery?
2144 - quantity:350 2095 - quantity:100
I have this Json
var data = "{"2144":{"quantity":"350"},"2095":{"quantity":"100"}}"
how can i get each value like this order using jquery?
2144 - quantity:350 2095 - quantity:100
 
    
    Loop through each key/value pair in nested format like this:
 var data = JSON.parse( '{"2144":{"quantity":"350"},"2095":    {"quantity":"100"}}');
    $.each(data , function(key , value){
     $.each(value , function(k , v ){
         console.log(key + '-' + k + ':' + v)
     });  
    });<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>