ko.toJSON is creating some unwanted copiedProperties properties
knockout.js
Solution
If you are using the KO mapping plugin you should use the plugin's conversion methods e.g.
ko.mapping.toJSON
and ko.mapping.toJS
instead of the built in `ko.toJSON` and `ko.toJS`.
Because the mapping version of the methods will take of the additional properties which by the way are used internally by the plugin itself.
Demo JSFiddle.
Problem
I'm findign that ko.toJSON is creating some unwanted stuff like: copiedProperties destroy ``` {"test":1,"AppStart":true,"requestedDateFormat":"YYYY-MM-DD","__ko_mapping__":{"ignore":[],"include":["_destroy"],"copy":[],"observe":[],"mappedProperties":{"test":true,"AppStart":true,"requestedDateFormat":true},"copiedProperties":{}}} ``` whats the point of these? can I remove them by default?