Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to pass json format data on ajax call

BY LOVE

1- Pass the JSON format data in this way
data: { "str1": "Love", "str2": "Singh" }
2- You can use JSON.Stringfy function also
var employee = { Id: 101, Name: "Love singh" };  
data: JSON.stringify(employee)
 
PREVIOUS NEXT
Tagged: #How #pass #json #format #data #ajax #call
ADD COMMENT
Topic
Name
3+9 =