{"id":163239,"date":"2012-12-19T21:00:03","date_gmt":"2012-12-19T17:00:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=163239"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=163239","title":{"rendered":"<span class=\"post_title\">\u0421\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f .NET \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 JavaScript variable \u043d\u0430 HTML \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u043d\u0443\u0442\u0440\u044c Script-\u0431\u043b\u043e\u043a\u0430<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h4>\u0421\u0442\u0430\u0440\u044b\u0435 \u0434\u043e\u0431\u0440\u044b\u0435 hidden inputs<\/h4>\n<p>  \u0427\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 HTML \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0437 JavaScript. \u0418\u0437\u0434\u0430\u0432\u043d\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431: <b>hidden inputs<\/b>. \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c Uri \u0430\u0434\u0440\u0435\u0441 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043c\u044b \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435<\/p>\n<pre><code class=\"html\">  &lt;input type=&quot;hidden&quot; name=&quot;webServiceUri&quot; value=&quot;URI we need&quot;\/&gt; <\/code><\/pre>\n<p>  \u0438 \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 jQuery \u0438\u043b\u0438 plain old JavaScript \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 input \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b, \u0442\u043e \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u043c. \u041c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c REST \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0434\u0430\u0435\u0442 \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e AJAX-\u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b (\u0441\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435), \u043d\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u044d\u0442\u043e \u0438\u0437\u043b\u0438\u0448\u043d\u0435.<\/p>\n<p>  \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u2014 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0432 HTML \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0434\u0435 JavaScript \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 Script-\u0431\u043b\u043e\u043a\u0430.<\/p>\n<h4>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 ASP.NET MVC.<\/h4>\n<p><a name=\"habracut\"><\/a><br \/>  \u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c:  <\/p>\n<ul>\n<li>\u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c .NET \u043a\u043b\u0430\u0441\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e<\/li>\n<li>\u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c Extension \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f MVC HtmlHelper, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0438\u043c\u044f JavaScript \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c<\/li>\n<li>\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u043c\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432\u043e View \u0432\u043d\u0443\u0442\u0440\u0438 ViewModel \u0438\u043b\u0438 ViewBag<\/li>\n<li>\u0438\u043c\u044f JavaScript \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u0441\u044f \u0432\u043e View \u0438\u0437 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0438\u043b\u0438 \u0445\u0430\u0440\u0434-\u043a\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043e View<\/li>\n<\/ul>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u0434 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443:<\/p>\n<pre><code class=\"html\">&lt;script type=&quot;text\/javascript&quot;&gt;    var settings = {&quot;WebServiceUri&quot;:&quot;URI we need&quot;,&quot;UserId&quot;:&quot;1212&quot;}; &lt;\/script&gt; <\/code><\/pre>\n<p>  Extension \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f MVC HtmlHelper \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0442\u0430\u043a\u0438\u043c:<\/p>\n<pre><code class=\"cs\">  \/\/\/ &lt;summary&gt;   \/\/\/ This class provides the extension methods to ASP.NET MVC HtmlHelper.   \/\/\/ &lt;\/summary&gt;   public static class HtmlHelperExtensions   {     \/\/\/ &lt;summary&gt;     \/\/\/ This method renders the given model class as JavaScript variable within Html Script tag.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;htmlHelper&quot;&gt;HtmlHelper instance we extend by this method.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;variableName&quot;&gt;The name of JavaScript variable the rendered Json object will be assigned to.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;model&quot;&gt;The model class to be rendered to Json and assigned to the variable.&lt;\/param&gt;     \/\/\/ &lt;returns&gt;Html representation of Html Script tag.&lt;\/returns&gt;     public static MvcHtmlString RenderJsToScriptBlock(this HtmlHelper htmlHelper, string variableName, object model)     {       #region Pre-conditions       if (string.IsNullOrWhiteSpace(variableName)) { throw new ArgumentNullException(&quot;variableName&quot;); }       #endregion Pre-conditions        if (null == model) { return MvcHtmlString.Empty; }        TagBuilder tagBuilder = new TagBuilder(@&quot;script&quot;);       tagBuilder.MergeAttribute(@&quot;type&quot;, @&quot;text\/javascript&quot;);        \/\/ use InnerHtml because it doesn't encode characters       tagBuilder.InnerHtml = string.Format(&quot;var {0} = {1};&quot;, variableName, htmlHelper.Raw(Json.Encode(model)));        return new MvcHtmlString(tagBuilder.ToString());     }   } <\/code><\/pre>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e Unit-\u0442\u0435\u0441\u0442\u043e\u0432 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c moq \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0438 MSTest:<\/p>\n<pre><code class=\"cs\">    [TestMethod, TestCategory(&quot;Unit&quot;)]     [ExpectedException(typeof(ArgumentNullException))]     public void Should_Not_Accept_Null_VariableName()     {       HtmlHelper helper = new HtmlHelper(new Mock&lt;ViewContext&gt;().Object, new Mock&lt;IViewDataContainer&gt;().Object);       helper.RenderJsToScriptBlock(null, null);     }      [TestMethod, TestCategory(&quot;Unit&quot;)]     [ExpectedException(typeof(ArgumentNullException))]     public void Should_Not_Accept_Empty_VariableName()     {       HtmlHelper helper = new HtmlHelper(new Mock&lt;ViewContext&gt;().Object, new Mock&lt;IViewDataContainer&gt;().Object);       helper.RenderJsToScriptBlock(string.Empty, null);     }      [TestMethod, TestCategory(&quot;Unit&quot;)]     public void Should_Return_Empty_MvcHtmlString_For_NullModel()     {       HtmlHelper helper = new HtmlHelper(new Mock&lt;ViewContext&gt;().Object, new Mock&lt;IViewDataContainer&gt;().Object);       MvcHtmlString mvcHtmlString = helper.RenderJsToScriptBlock(&quot;variableName&quot;, null);       Assert.AreEqual(mvcHtmlString, MvcHtmlString.Empty);     }      [TestMethod, TestCategory(&quot;Unit&quot;)]     public void Should_Return_Correct_Result_For_Correct_Input()     {       const string expectedHtmlString = &quot;&lt;script type=\\&quot;text\/javascript\\&quot;&gt;var variableName = {\\&quot;UserName\\&quot;:\\&quot;Alex\\&quot;};&lt;\/script&gt;&quot;;        HtmlHelper helper = new HtmlHelper(new Mock&lt;ViewContext&gt;().Object, new Mock&lt;IViewDataContainer&gt;().Object);       var model = new { UserName = &quot;Alex&quot; };       MvcHtmlString mvcHtmlString = helper.RenderJsToScriptBlock(&quot;variableName&quot;, model);        Assert.AreEqual(mvcHtmlString.ToHtmlString(), expectedHtmlString);     } <\/code><\/pre>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/163239\/\"> http:\/\/habrahabr.ru\/post\/163239\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h4>\u0421\u0442\u0430\u0440\u044b\u0435 \u0434\u043e\u0431\u0440\u044b\u0435 hidden inputs<\/h4>\n<p>  \u0427\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 HTML \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0437 JavaScript. \u0418\u0437\u0434\u0430\u0432\u043d\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431: <b>hidden inputs<\/b>. \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c Uri \u0430\u0434\u0440\u0435\u0441 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043c\u044b \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435<\/p>\n<pre><code class=\"html\">  &lt;input type=&quot;hidden&quot; name=&quot;webServiceUri&quot; value=&quot;URI we need&quot;\/&gt; <\/code><\/pre>\n<p>  \u0438 \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 jQuery \u0438\u043b\u0438 plain old JavaScript \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 input \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b, \u0442\u043e \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u043c. \u041c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c REST \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0434\u0430\u0435\u0442 \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e AJAX-\u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b (\u0441\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435), \u043d\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u044d\u0442\u043e \u0438\u0437\u043b\u0438\u0448\u043d\u0435.<\/p>\n<p>  \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u2014 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0432 HTML \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0434\u0435 JavaScript \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 Script-\u0431\u043b\u043e\u043a\u0430.<\/p>\n<h4>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 ASP.NET MVC.<\/h4>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-163239","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/163239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163239"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/163239\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=163239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=163239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}