converts formhub's formJSON to a formDefinitionJSON used by drishti