building the json structure
created a function to read form
Form reading function