We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c848d16 commit 8a3f5f9Copy full SHA for 8a3f5f9
1 file changed
src/NuGetGallery/Views/Users/ApiKeys.cshtml
@@ -1,4 +1,5 @@
1
-@model ApiKeyListViewModel
+@using Newtonsoft.Json
2
+@model ApiKeyListViewModel
3
@using NuGetGallery.Authentication
4
@{
5
ViewBag.Title = "API Keys";
@@ -463,7 +464,7 @@
463
464
465
@section bottomScripts {
466
<script type="text/javascript">
- var initialData = @Html.Raw(Json.Encode(new
467
+ var initialData = @Html.Raw(JsonConvert.SerializeObject(new
468
{
469
ApiKeys = Model.ApiKeys,
470
PackageOwners = Model.PackageOwners,
0 commit comments