Very good to all, the first is to ask disulpas for the title of the question that perhaps is not the most appropriate but I did not know how to express the doubt better.
I'm painting a table where your data is a json object and you need to be able to walk the json and paint the rows of the table at the same time.
This is my code, I think it is much better understood seeing it. Greetings.
return '<table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">'+
'<tr>'+
'<td>Id:</td>'+
'<td>'+objJson['0'].id+'</td>'+
'</tr>'+
'<tr>'+
'<td>Tarea:</td>'+
'<td>'+objJson['0'].name+'</td>'+
'</tr>'+
'<tr>'+
'<td>Descripción:</td>'+
'<td>'+objJson['0'].dsc+'</td>'+
'</tr>'+
'<tr>'+
'<td>Colaborador:</td>'+
'<td>'+objJson['0'].colab_name+'</td>'+
'</tr>'+
'<tr>'+
'<td>Presupuesto Asignado:</td>'+
'<td>'+objJson['0'].prsp_def+'</td>'+
'</tr>'+
'<tr>'+
'<td>Gasto Real:</td>'+
'<td>'+objJson['0'].prsp_ctb+'</td>'+
'</tr>'+
'</table>';