'JSON from Controller to List
I have a simple method in the controller that returns me a list of days as JSON. (public JsonResult GetReservedDaysJson()) Result:
["2022-03-29","2022-03-30"]
I want to use this JSON file as a list of days on other method. How to achieve this?
I tried these solutions:
dynamic jsonObj = JsonConvert.DeserializeObject(GetReservedDaysJson().ToString());
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
