2👍
✅
You forgot to include Double quotes(“) in the key of Json
Use proper syntax for Json in Javascript
var postData = {
"text": $("#input-box").val(),
"rotate": $("#rotate").val()
};
👤Mani
Source:stackexchange.com