Erro ao pegar retorno do Json

consegui solucionar o problema criando uma função javascript no html do formulário. Obrigado @Gabriel pela grande ajuda. Segue o código


var url = "http://[endereco]:[porta]/api/public/2.0/documents/getDownloadURL/2861";
		
	$.getJSON(url, function(dadosRetorno){
	   try{
		if (dadosRetorno.erro != true){
		    console.log("retorno do json: " + dadosRetorno.content);				
		}else{					
		    console.log("caiu no else");
		}
			
		}catch(ex){}
	});


1 curtida

Ótimo @Robson, abraço

@Robson, anexe aqui o JSON que está sendo retornado

Boa tarde, segue o retorno do json



{"content":"http://[ip fluig]:[porta]/volume/stream/Rmx1aWc=/P3Q9MSZ2b2w9RGVmYXVsdCZpZD0yODYxJnZlcj0xMDAwJmZpbGU9Zmx1aWcucGRmJmNyYz0zNzkzMjY5MDA3JnNpemU9MC4wNDU5MzkmdUlkPTIzJmZTSWQ9MSZ1U0lkPTEmZD1mYWxzZQ==.pdf","message":null}