JSFiddle - React, Tailwind, and code Playground
by Akram kamal
JavaScript
var callEcho = function(json) {
$.ajax({
url: "/echo/json/",
type: "POST",
data: json
}).done(function(resp) {
console.log(resp);
document.write(resp.key + " " + resp.number);
});
};
$.get("http://echo.jsontest.com/key/awesome/number/five", function(data) {
var json = {
json: JSON.stringify(data)
};
callEcho(json);
});