Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

django ajax json data become string

// From AJAX you need to post the data as JSON string rather than 
// a JavaScript object.
payload = JSON.stringify({"name": "foo", "username":"bar"})
 
PREVIOUS NEXT
Tagged: #django #ajax #json #data #string
ADD COMMENT
Topic
Name
1+7 =