The Ajax call returns the following JSON:
Everything seems good. But when I try to access any of that content, it returns undefined.
success: function (respuesta){
   alert(respuesta.datos[0].cod_registro);
}
Even attributes like status or success return undefined. Any idea why that is? I'm not sure what I can post to help you.

 
    