Is there a way to send Json from my server-side to Java Script?
return Json("{\"Message\":\"A mistake just happened\",\"Passed\":\"false\"}", JsonRequestBehavior.AllowGet);
Although it works, I receive everything as a string. I need to know if it passed. Should I convert the Passed
variable to a boolean or compare it to false?
Am I on the right track with this approach, or am I making a mistake in sending or receiving the Json?