Skip to main content

Bug Tracker

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 steida comment:1

stringified via JSON.stringify of course

Changed October 22, 2010 10:25PM UTC by rwaldron comment:2

owner: → steida
priority: → low
status: newpending

Please clarify what is being requested

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:3

status: pendingclosed

Automatically closed due to 14 days of inactivity.