Fixed fields and added response as json

Now request parameters are sent in json file.
restructured files