JSFiddle - React, Tailwind, and code Playground

JavaScript

function getJSON(url, callback) {
    new Request.JSON({
        url: url,
        data: {
            json: '{"n":"1","txt":"No apostrophe"}'
        },
        onSuccess: callback
    }).send();
}

getJSON('/echo/json/', function(json) {
    console.log(json);
});