JSFiddle - React, Tailwind, and code Playground
JavaScript
var endereco = 'http://echo.jsontest.com/key/value/one/two';
$.ajax({
url: endereco,
complete: function(res){
var meuJSON = JSON.parse(res.responseText);
console.log(meuJSON);
}
});