JSFiddle - React, Tailwind, and code Playground
HTML
<script src=" https://github.com/douglascrockford/JSON-js/blob/master/json2.js"></script>
<div id="results1">1</div>
<div id="results2">2</div>
JavaScript
$(function() {
/* cant get it working.. what I am demonstrating is a bug with jQUery 1.5, 1.5.1
* The Message here is "??", but in the posted back URL it will end up
* Query151044947751238942146_1299030184872?
*/
var myData = {
AccountIds: 17,
Message: "??"
};
var encData = JSON.stringify(myData);
$("#results1").text(encData);
$.ajax({
type: "POST",
url: "/echo/json/",
data: encData,
dataType: "json",
success: function(json, textStatus) {
$("#results2").text(json);
}
});
});