bind c# list to jQuery template
===

What would be the best way to bind C# List to jQuery template?
The only way I found so far is as follows:

    JavaScriptSerializer serializer = new JavaScriptSerializer();
    var jsonData  = serializer.Serialize(ListOfObjects);
    Response.Write("<script type='text/javascript'>var jsonData = " + jsonData  + ";</script>");

on page:

    $("div").html($("#myTemplate").tmpl(jsonData ));

    <script id="myTemplate" type="text/x-jquery-tmpl">
      ${}
    </script>

Any better way to do it?