read from json file and build form