Is there a way in jQuery to change $.ajax
from defaulting to serializing sent data as a Form to serializing it as JSON?
Instead of the following:
$.post("/my/url/endpoint", JSON.stringify(obj))
I'd like to do something like this once, so that automatically happens:
$.defaultSeralizer = JSON.stringify
From now on I'd be able to:
$.post("/my/url/endpoint", obj)