form inputs are converted into json