Sir Trevor: start converting the setValue function to convert the html to the needed json format