I am trying to send a json object using GET method. My code:
$.ajax({ url: \"/api/endpoint\", type: \"GET\", data: {\"sort\"
I think you should use JSON.stringify for GET parameters in URL like this:
$.ajax({ url: "/api/endpoint?parameters="+JSON.stringify({"sort":"date"}), type: "GET", contentType: "application/json", dataType: "json", ...