model to js

JavaScript
var objModel [email protected](Json.Serialize(Model));
Source

Also in JavaScript: