Note: Just a quick recipe, since this is ridiculously Google-able.

Posting JSON with jQuery

To post a JSON with jQuery, stringify the object and send is as the data parameter. Done.

vat data = { message: 'Hello, hello.' };
    $.post('/api/foo', JSON.stringify(data))
        .success(function(...) { ... });