I am new to the knockoutjs, I have following viewmodel:
var Testing = function(){
this.Username = ko.observable("");
this.Password = ko.observable("");
this.email = ko.observable("");
}
I need to convert only certain data bind values(Username and password) into json. All the values are getting converted into json when I use like this data = ko.toJSON(this);
So how I can filter certain data bind values and convert into json ?