Side navigation
#6874 closed enhancement ()
Opened August 04, 2010 11:33PM UTC
Closed November 11, 2010 11:09PM UTC
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'}});
Attachments (0)
Change History (3)
Changed August 04, 2010 11:34PM UTC by comment:1
Changed October 22, 2010 10:25PM UTC by comment:2
owner: | → steida |
---|---|
priority: | → low |
status: | new → pending |
Please clarify what is being requested
Changed November 11, 2010 11:09PM UTC by comment:3
status: | pending → closed |
---|
Automatically closed due to 14 days of inactivity.
stringified via JSON.stringify of course