New to Kendo UI for jQueryStart a free 30-day trial

ToJSON

methods

Creates a plain JavaScript object which contains all fields of the ObservableObject.

Returns:Object

—Contains only the fields of the ObservableObject.

<script>
var observable = new kendo.data.ObservableObject({ person: { name: "John Doe" } });
var json = observable.toJSON();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(JSON.stringify(json)); // outputs {"person":{"name":"John Doe"}}
</script>
Not finding the help you need?
Contact Support