1. serialize form data to a JSON object. 2.unserialize data back into form's element.