{"id":274202,"date":"2016-02-13T00:09:03","date_gmt":"2016-02-12T21:09:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=274202"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=274202","title":{"rendered":"\u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u0432 WPF"},"content":{"rendered":"<p>       \u0412 WPF \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0440\u0438 \u0432\u0438\u0434\u0430 \u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a: <b>Binding<\/b>, <b>PriorityBinding<\/b> \u0438 <b>MultiBinding<\/b>. \u0412\u0441\u0435 \u0442\u0440\u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0442\u0441\u044f \u043e\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 <b>BindingBase<\/b>. PriorityBinding \u0438 MultiBinding \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"xml\">&lt;MultiBinding Converter=&quot;{StaticResource JoinStringConverter}&quot; ConverterParameter=&quot; &quot;&gt;     &lt;Binding Path=&quot;FirstName&quot; \/&gt;     &lt;Binding Path=&quot;MiddleName&quot; \/&gt;     &lt;Binding Path=&quot;LastName&quot; \/&gt; &lt;\/MultiBinding&gt; <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 JoinStringConverter<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">public class JoinStringConverter : IMultiValueConverter {     public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)     {         var separator = parameter as string ?? &quot; &quot;;         return string.Join(separator, values);     }      public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)     {         var separator = parameter as string ?? &quot; &quot;;         return (value as string)?.Split(new[] { separator }, StringSplitOptions.None).Cast&lt;object&gt;().ToArray();     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a MultiBinding-\u0430 \u2014 \u044d\u0442\u043e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u0442\u0438\u043f\u0430 <b>Collection&lt;BindingBase&gt;<\/b>. \u041b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 MultiBinding-\u0430 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d MultiBinding.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<pre><code class=\"xml\">&lt;MultiBinding Converter=&quot;{StaticResource JoinStringConverter}&quot; ConverterParameter=&quot; &quot;&gt;     &lt;Binding Path=&quot;MyProperty1&quot; \/&gt;     &lt;MultiBinding Converter=&quot;{StaticResource JoinStringConverter}&quot; ConverterParameter=&quot;, &quot;&gt;         &lt;Binding Path=&quot;MyProperty2&quot; \/&gt;         &lt;Binding Path=&quot;MyProperty3&quot; \/&gt;         &lt;Binding Path=&quot;MyProperty4&quot; \/&gt;     &lt;\/MultiBinding&gt; &lt;\/MultiBinding&gt; <\/code><\/pre>\n<p>  \u041d\u043e \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043b\u043e\u0432\u0438\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 &quot;<i>BindingCollection \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0442\u0438\u043f\u0430 MultiBinding. \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0438\u043f Binding.<\/i>&quot;. \u0417\u0430\u0447\u0435\u043c \u0436\u0435 \u0431\u044b\u043b\u043e \u0442\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <b>Collection&lt;BindingBase&gt;<\/b>, \u0430 \u043d\u0435 <b>Collection&lt;Binding&gt;<\/b>? \u0410 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <b>Collection&lt;Binding&gt;<\/b>, \u043c\u044b \u0431\u044b \u043f\u043e\u0439\u043c\u0430\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 &quot;<i>Binding \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u00abCollection&lt;Binding&gt;\u00bb. \u00abBinding\u00bb \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 DependencyProperty \u043e\u0431\u044a\u0435\u043a\u0442\u0430 DependencyObject.<\/i>&quot;.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a \u0431\u044b\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043a\u043b\u0430\u0441\u0441 NestedBinding, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0435\u0431\u044f \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 Binding \u0438 NestedBinding.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 NestedBinding<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">[ContentProperty(nameof(Bindings))] public class NestedBinding : MarkupExtension {     public NestedBinding()     {         Bindings = new Collection&lt;BindingBase&gt;();     }      public Collection&lt;BindingBase&gt; Bindings { get; }      public IMultiValueConverter Converter { get; set; }      public object ConverterParameter { get; set; }      public CultureInfo ConverterCulture { get; set; }      public override object ProvideValue(IServiceProvider serviceProvider)     {         if (!Bindings.Any())             throw new ArgumentNullException(nameof(Bindings));         if (Converter == null)             throw new ArgumentNullException(nameof(Converter));          var target = (IProvideValueTarget)serviceProvider.GetService(typeof(IProvideValueTarget));         if (target.TargetObject is Collection&lt;BindingBase&gt;)         {             var binding = new Binding             {                 Source = this             };             return binding;         }          var multiBinding = new MultiBinding         {             Mode = BindingMode.OneWay         };         var tree = GetNestedBindingsTree(this, multiBinding);         var converter = new NestedBindingConverter(tree);         multiBinding.Converter = converter;          return multiBinding.ProvideValue(serviceProvider);     }      private static NestedBindingsTree GetNestedBindingsTree(NestedBinding nestedBinding, MultiBinding multiBinding)     {         var tree = new NestedBindingsTree         {             Converter = nestedBinding.Converter,             ConverterParameter = nestedBinding.ConverterParameter,             ConverterCulture = nestedBinding.ConverterCulture         };         foreach (var bindingBase in nestedBinding.Bindings)         {             var binding = bindingBase as Binding;             var childNestedBinding = binding?.Source as NestedBinding;             if (childNestedBinding != null && binding.Converter == null)             {                 tree.Nodes.Add(GetNestedBindingsTree(childNestedBinding, multiBinding));                 continue;             }              tree.Nodes.Add(new NestedBindingNode(multiBinding.Bindings.Count));             multiBinding.Bindings.Add(bindingBase);         }          return tree;     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 NestedBindingNode \u0438 NestedBindingsTree<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">public class NestedBindingNode {     public NestedBindingNode(int index)     {         Index = index;     }      public int Index { get; }      public override string ToString()     {         return Index.ToString();     } }  public class NestedBindingsTree : NestedBindingNode {     public NestedBindingsTree() : base(-1)     {         Nodes = new List&lt;NestedBindingNode&gt;();     }      public IMultiValueConverter Converter { get; set; }      public object ConverterParameter { get; set; }      public CultureInfo ConverterCulture { get; set; }      public List&lt;NestedBindingNode&gt; Nodes { get; private set; } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 NestedBindingConverter<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">public class NestedBindingConverter : IMultiValueConverter {     public NestedBindingConverter(NestedBindingsTree tree)     {         Tree = tree;     }      private NestedBindingsTree Tree { get; }      public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)     {         var value = GetTreeValue(Tree, values, targetType, culture);         return value;     }      private object GetTreeValue(NestedBindingsTree tree, object[] values, Type targetType, CultureInfo culture)     {         var objects = tree.Nodes.Select(x =&gt; x is NestedBindingsTree ? GetTreeValue((NestedBindingsTree)x, values, targetType, culture) : values[x.Index]).ToArray();         var value = tree.Converter.Convert(objects, targetType, tree.ConverterParameter, tree.ConverterCulture ?? culture);         return value;     }      public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)     {         throw new NotImplementedException();     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d NestedBinding \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 MultiBinding. \u041d\u043e \u0442.\u043a. MultiBinding \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 MultiBinding, \u0442\u043e \u0434\u0435\u0440\u0435\u0432\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043e\u043a Binding-\u043e\u0432. \u041f\u043e\u0437\u0438\u0446\u0438\u044f \u044d\u0442\u0438\u0445 Binding-\u043e\u0432 \u0438 \u0438\u0445 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0435\u0440\u0435\u0432\u0430 \u0432 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u0435 NestedBindingConverter.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6be\/64d\/bf0\/6be64dbf000545098b72b207f086fc26.jpg\"\/><\/p>\n<p>  \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432\u0441\u0435\u0445 \u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a Binding \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0435\u0440\u0435\u0432\u0430. \u0414\u0430\u043b\u0435\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0435\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0431\u0445\u043e\u0434 \u0434\u0435\u0440\u0435\u0432\u0430, \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u043e\u0432.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f NestedBinding:  <\/p>\n<pre><code class=\"xml\">&lt;TextBlock&gt;     &lt;TextBlock.Text&gt;         &lt;n:NestedBinding Converter=&quot;{StaticResource JoinStringConverter}&quot; ConverterParameter=&quot;, &quot;&gt;             &lt;Binding Path=&quot;A&quot; \/&gt;              &lt;n:NestedBinding Converter=&quot;{StaticResource JoinStringConverter}&quot; ConverterParameter=&quot; &quot;&gt;                 &lt;Binding Path=&quot;B&quot; \/&gt;                 &lt;Binding Path=&quot;C&quot; \/&gt;                  &lt;n:NestedBinding Converter=&quot;{StaticResource JoinStringConverter}&quot; ConverterParameter=&quot;&quot;&gt;                     &lt;Binding Source=&quot;(&quot; \/&gt;                     &lt;Binding Path=&quot;D&quot; \/&gt;                     &lt;Binding Path=&quot;E&quot; \/&gt;                     &lt;Binding Source=&quot;)&quot; \/&gt;                 &lt;\/n:NestedBinding&gt;             &lt;\/n:NestedBinding&gt;              &lt;Binding Path=&quot;F&quot; UpdateSourceTrigger=&quot;PropertyChanged&quot; \/&gt;         &lt;\/n:NestedBinding&gt;     &lt;\/TextBlock.Text&gt; &lt;\/TextBlock&gt; <\/code><\/pre>\n<p>  \u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u00abA, B C (DE), F\u00bb.                 <\/p>\n<div class=\"clear\"><\/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=\"https:\/\/habrahabr.ru\/post\/277157\/\"> https:\/\/habrahabr.ru\/post\/277157\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0412 WPF \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0440\u0438 \u0432\u0438\u0434\u0430 \u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a: <b>Binding<\/b>, <b>PriorityBinding<\/b> \u0438 <b>MultiBinding<\/b>. \u0412\u0441\u0435 \u0442\u0440\u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0442\u0441\u044f \u043e\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 <b>BindingBase<\/b>. PriorityBinding \u0438 MultiBinding \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"xml\">&lt;MultiBinding Converter=&quot;{StaticResource JoinStringConverter}&quot; ConverterParameter=&quot; &quot;&gt;     &lt;Binding Path=&quot;FirstName&quot; \/&gt;     &lt;Binding Path=&quot;MiddleName&quot; \/&gt;     &lt;Binding Path=&quot;LastName&quot; \/&gt; &lt;\/MultiBinding&gt; <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 JoinStringConverter<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">public class JoinStringConverter : IMultiValueConverter {     public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)     {         var separator = parameter as string ?? &quot; &quot;;         return string.Join(separator, values);     }      public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)     {         var separator = parameter as string ?? &quot; &quot;;         return (value as string)?.Split(new[] { separator }, StringSplitOptions.None).Cast&lt;object&gt;().ToArray();     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a MultiBinding-\u0430 \u2014 \u044d\u0442\u043e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u0442\u0438\u043f\u0430 <b>Collection&lt;BindingBase&gt;<\/b>. \u041b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 MultiBinding-\u0430 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d MultiBinding.  <\/p>\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-274202","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274202","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=274202"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274202\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}