What is the difference between JSONResult and ActionResult?
can any one explain above the question
thank u
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajeesh MenothRank #118 · 18.4K reputationPosted Nov 18, 2016, 10:02 PM EST
Mukesh NayakRank #1,172 · 1.5K reputationPosted Nov 18, 2016, 10:16 PM EST
Milan Prajapati107 reputationPosted Nov 19, 2016, 1:45 AM EST
JsonResult is a subtype of ActionResult.
ActionResult is used when you want to return a view or file or even jsondata or redirect etc to be handled by a browser.
JsonResult is used when you want to return raw JSON data to be consumed by a client.
ActionResult is a basetype for several subtypes like JsonResult, ViewResult, PartialViewResult, RedirectResult, ContentResult.