bind JSON properties to a form
You can run a loop that will search the elment and put the value:
$.each(json, function(key, value) {
form.find("input[name='" + key + "']").val(value);
});
and for the form:
<form id="myform">
<input type="text" name="foo" />
<input type="text" name="other" />
</form>
using .field instead of input is to work with textarea and select