Bug Tracker

Modify

Ticket #6874 (closed enhancement)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by steida

stringified via JSON.stringify of course

comment:2 Changed 3 years ago by rwaldron

  • Owner set to steida
  • Priority set to low
  • Status changed from new to pending

Please clarify what is being requested

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

  • Status changed from pending to closed

Automatically closed due to 14 days of inactivity.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.