how to show model data in script using mvc code example Example: access to model from js var model = @Html.Raw(Json.Encode(Model));