this uses the fields json file to create a nice hierchical form