lets say your JSON data looks like this:
[
{ textBoxId: "title0", value: "some value" },
{ textBoxId: "title1", value: "some other value" }
]
then your routine to set the values should be this:
$.each(jsonData.d, function(index, item){
$('#' + item.textBoxId).val(item.value);
});
if the Id of the textbox coming back from the server isnt the client id of the textbox modify the .value js to
$('input[id*="' + item.textBoxId + '"]').val(item.value);