Bug Tracker

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:


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 steida

stringified via JSON.stringify of course

comment:2 Changed 12 years ago by Rick Waldron

Owner: set to steida
Priority: low
Status: newpending

Please clarify what is being requested

comment:3 Changed 12 years ago by trac-o-bot

Status: pendingclosed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.