change sending data from form data to json