Added ability to serialize and deserialize the form field data to and from JSON.