Generate a form dynamicallly based on a JSON object