Modify ↓
Ticket #6874 (closed enhancement)
ajax contentType application/json -> data object2json automatically
| Reported by: | steida | Owned by: | steida |
|---|---|---|---|
| Priority: | low | Milestone: | 1.4.3 |
| Component: | ajax | Version: | 1.4.2 |
| Keywords: | ajax json | Cc: | |
| Blocking: | Blocked by: |
Description
As I said, in 2010 we have json rest services.
set up json $.ajaxSetup({contentType: 'application/json; charset=utf-8'}); note how object is stringified automatically $.ajax({url: '/users, type: 'post', data: {name: 'foo'}});
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

stringified via JSON.stringify of course