I know there is a far more elegant/efficient way of doing this (in php I would use foreach) but with jQuery how can I walk the var/val pairs of a JSON response and populate
You can get rid of all "if" statements by replacing your $.each with this:
$.each(data, function(i, item){ $("#"+item.field).val(item.value); });