///////////////////////////
// poll object
///////////////////////////
// jsonObj: required: mode, optional: id, name, description
function Member(){

    this.id = null;
    this.firstName = null;
    this.lastName = null;
    this.email = null;
    this.password = null;
    this.passwordConfirmation = null;

    this.toJSON = function(){
        var result = "{" + "id:" + this.id +
                     ", firstName:'" + encodeURIComponent(kolamonEscape(this.firstName)) + "'" +
                     ", lastName:'" + encodeURIComponent(kolamonEscape(this.lastName)) + "'" +
                     ", email:'" + this.email + "'" +
                     ", password:'" + encodeURIComponent(kolamonEscape(this.password)) + "'" +
                     ", passwordConfirmation:'" + encodeURIComponent(kolamonEscape(this.passwordConfirmation)) + "'" +
                     "}";
        return result;
    }
}

