mardi 3 février 2015

Dynamic model based on JSON received from web service


I am creating a MVC web application which receives some data from a web service in JSON format. I get the different content type structures and data items related to that structure. Using that JSON I want to allow users to create new items in specific content type or edit item.


Now the problem is that I do not know the structure of item, there may be n number of structures. I want to create a ViewModel dynamically on runtime for this purpose.


Is it possible or there should be any other approach?





Aucun commentaire:

Enregistrer un commentaire