stringify

Converts a JavaScript object to JSON. Uses JSON.stringify in browsers that support it.

Parameters

value Object

The value to convert to a JSON string.

Returns

String The JSON representation of the value.

Example

<script>
var json = kendo.stringify({ foo: "bar" });
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(json); // displays {"foo":"bar"}
</script>
In this article