migrate it from https://github.com/jameszhan/form2json.