Solution for "ajax data format"

$.ajax({ type: "POST", contentType: "application/json", url: 'http://localhost:16329/Hello', data: { name: 'norm' }, dataType: "json" });

how to set json type jquery ajax

$.ajax({ type: "POST", url: siteRoot + "api/SpaceGame/AddPlayer", async: false, data: JSON.stringify({ Name: playersShip.name, Credits: playersShip.credits }), contentType: "application/json", complete: function (data) { console.log(data); wait = false; } });

how to set json type jquery ajax

Similar codes for "ajax data format"


Latest 'Javascript' questions

Added before "ajax data format"