Allows only a few fields to be serialized.

Example Usage:
//Will serialize only the fields specified: 'id', 'name', 'address' and 'age'.
ko.mapping.toJSON(viewModel, { includeOnly: ['id', 'name', 'address', 'age' ]);