public async Task <ActionResult <string> > Create() { String datos; using (StreamReader reader = new StreamReader(Request.Body, Encoding.UTF8)) { datos = await reader.ReadToEndAsync(); } var ObjectoJson = JsonConvert.DeserializeObject <JObject>(datos); var datosSerializados = new ListModel { elementoId = (string)ObjectoJson["elementoId"], elementoName = (string)ObjectoJson["elementoName"], elementoFormato = (string)ObjectoJson["elementoFormato"], elementoEvento = (string)ObjectoJson["elementoEvento"], datosMostrar = ObjectoJson["datosMostrar"].Select(d => new DatosLista((string)d["Etiqueta"], (string)d["Value"])).ToList() }; return(await datosSerializados.GenerateView()); }