Opened 13 years ago
Closed 12 years ago
#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: | |
Blocked by: | Blocking: |
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 (3)
comment:1 Changed 13 years ago by
comment:2 Changed 12 years ago by
Owner: | set to steida |
---|---|
Priority: | → low |
Status: | new → pending |
Please clarify what is being requested
comment:3 Changed 12 years ago by
Status: | pending → closed |
---|
Automatically closed due to 14 days of inactivity.
Note: See
TracTickets for help on using
tickets.
stringified via JSON.stringify of course