JSFiddle - React, Tailwind, and code Playground
by jzbruno
HTML
<script src="http://jquery-json.googlecode.com/files/jquery.json-2.2.min.js"></script>
<section>
</section>
JavaScript
$(document).ready(function () {
var items = {
'json': $.toJSON([
{id: 1, title: 'one'},
{id: 2, title: 'two'},
{id: 3, title: 'three'}
]),
'delay': 3
};
var items = "{json:\"[{\"id\":1,\"title\":\"one\"},{\"id\":2,\"title\":\"two\"},{\"id\":3,\"title\":\"three\"}]\",delay: 3}";
console.log(items);
$.post('/echo/json/', items, function (data) {
console.log(data);
});
});