Check out the example on jsfiddle at http://jsfiddle.net/frigon/H6ssq/
I have encountered an issue where JSON.stringify is ignoring certain fields. Is there a way to make JSON.stringify include them in the parsing?
In the provided jsfiddle code...
<script src="http://cdn.kendostatic.com/2012.2.710/js/kendo.all.min.js"></script>
<script>
var model = kendo.data.Model.define({id: "ID", fields: {"Name":{type: "string"}}});
var obj = new model();
obj.set("Name","Johhny Foosball");
document.write("<br />obj.dirty property exists: ");
document.write(obj.dirty);
document.write("<br/>obj.uid property exists: ");
document.write(obj.uid);
document.write("<br/>However, they are not included in JSON.stringify():<br/>");
document.write(JSON.stringify(obj));
</script>
you will see the following output:
obj.dirty property exists: true
obj.uid property exists: b4af4dfc-9d94-4a2d-b286-d6f4cbc991d8
However, they are not included in JSON.stringify():
{"ID":"","Name":"Johhny Foosball"}