Created
April 2, 2013 12:39
-
-
Save maxclaus/5291897 to your computer and use it in GitHub Desktop.
Get the json converted from Model to be used on javascript in the View with Razor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
// Get Json ViewModel | |
var json_response = @Html.Raw(Json.Encode(Model)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment