Create forms dynamically based on a json data.
Here is my requirement.
I have a json object, which is having a lot of properties, some properties are strings, integers & arrays. i need to create form( UI ) dynamically with the json data. there are 4 different types of form (UI).
Which is the best approach to do this?
I can create it with simple jquery. But i need a perfect way to do this. So that in future, if i want to add more types of form, i should be in a position to do with minimal changes, instead of modifying a lot of code.
Any good patterns for this?
and finally submitting the form should return a json object which i will be saving it in the database.