JSFiddle - React, Tailwind, and code Playground
by gion_13
JavaScript
var json = JSON.stringify({
text: 'some text',
array: [1, 2, 'three'],
object: {
par1: 'another text',
par2: [3, 2, 'one'],
par3: {}
}
});
console.log(json);
window.a = $.ajax({
dataType : 'json',
// async: false,
url : '/echo/json/',
type : 'post',
data : {
json: json
},
success: function(){
console.log(arguments);
return arguments[0];
}
});