I'm encountering an issue while attempting to send a JavaScript object containing a string and a jstring to an MVC controller. Despite my code looking correct, I am receiving a null value in the controller. Any assistance would be greatly appreciated.
function setMultiQuestion(question, responses) {
qaObject = new questionAnswerObj('q', [{'correct':true,'answer':'A1'}, {'correct':true,'answer':'A2'}];);
$http.post(baseUrl + "Admin/insertMultiAnswers", { qaObject: qaObject })
.success(function (data, status, headers, config) {
})
.error(function (data, status, header, config) {
});
}
public ActionResult insertMultiAnswers(string[] qaObject)
{
Console.Write(qaObject);
}