Top "Jsonresult" questions

Represents a class that is used to send JSON-formatted content to the response.

Fastest way to check if a string is JSON in PHP?

I need a really, really fast method of checking if a string is JSON or not. I feel like this …

php json error-handling json-deserialization jsonresult
MaxJsonLength exception in ASP.NET MVC during JavaScriptSerializer

In one of my controller actions I am returning a very large JsonResult to fill a grid. I am getting …

asp.net-mvc exception serialization jsonresult
Using JSON.NET as the default JSON serializer in ASP.NET MVC 3 - is it possible?

Is it possible to use JSON.NET as default JSON serializer in ASP.NET MVC 3? According to my research, it …

asp.net-mvc-3 json.net jsonresult
How to redirect to a controller action from a JSONResult method in ASP.NET MVC?

I am fetching records for a user based on his UserId as a JsonResult... public JsonResult GetClients(int currentPage, int …

asp.net-mvc redirecttoaction jsonresult
Returning JSON from a JsonResult method in MVC controller

I am trying to populate a ComboBox (Telerik RAD COmboBox) in a test ASP.NET MVC3 app. I have defined …

c# asp.net-mvc telerik-mvc jsonresult
JsonResult return Json in ASP.NET CORE 2.1

Controller that worked in ASP.NET Core 2.0: [Produces("application/json")] [Route("api/[controller]")] [ApiController] public class GraficResourcesApiController : ControllerBase { private readonly …

c# json asp.net-core-2.1 jsonresult
How to unit test an Action method which returns JsonResult?

If I have a controller like this: [HttpPost] public JsonResult FindStuff(string query) { var results = _repo.GetStuff(query); var jsonResult = …

c# asp.net-mvc json unit-testing jsonresult
Actionresult vs JSONresult

I have 2 questions: What is the difference between JSONResult and ActionResult? When to use JSONResult in MVC?

asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-mvc-5 jsonresult
Can I convert a JSON string into JsonResult?

I have some stored JSON strings stored in the DB which I want to return to the client as JsonResult . …

asp.net asp.net-mvc json jsonresult
Cannot implicitly convert Web.Http.Results.JsonResult to Web.Mvc.JsonResult

I've set up this test method on a controller to strip out any complication to it. Based off of all …

c# asp.net-mvc json asp.net-mvc-5 jsonresult