JSFiddle - React, Tailwind, and code Playground
HTML
<div class='results'>
<input id='ns-nome' type='text' />
<input id='ns-endereco' type='text' />
</div>
JavaScript
$(function(){
$.post('/ajax_json_echo/', {nsName:'postName',nsAddress:'postAddress'},
function(dadosResposta) {
//since jsFiddle wraps the result we extract the data
dadosResposta = dadosResposta.post_response;
$('#ns-nome').val(dadosResposta.nsName);
$('#ns-endereco').val(dadosResposta.nsAddress);
},
"json");
});