Tuesday, July 15, 2014

loop and get key/value pair for JSON array using jQuery

var result = '{"FirstName":"John","LastName":"Doe","Email":"johndoe@johndoe.com","Phone":"123 dead drive"}';

$.each($.parseJSON(result), function(k, v) {
    alert(k + ' is ' + v);
});


No comments:

Post a Comment