{"id":205,"date":"2009-11-12T19:54:54","date_gmt":"2009-11-12T19:54:54","guid":{"rendered":"https:\/\/blogs.mathworks.com\/loren\/2009\/11\/12\/empty-arrays-with-flow-of-control-and-logical-operators\/"},"modified":"2009-11-06T19:58:32","modified_gmt":"2009-11-06T19:58:32","slug":"empty-arrays-with-flow-of-control-and-logical-operators","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/loren\/2009\/11\/12\/empty-arrays-with-flow-of-control-and-logical-operators\/","title":{"rendered":"Empty Arrays with Flow of Control and Logical Operators"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <introduction>\r\n      <p>After reading <a href=\"https:\/\/blogs.mathworks.com\/loren\/2009\/11\/04\/calculus-with-empty-arrays\/\">last week's post<\/a> on calculating with empty arrays, one of my colleagues mentioned some other behaviors with empty arrays that have tripped\r\n         him up in the past. Today I will discuss how empty arrays work in the contexts of flow of control expressions (both conditional\r\n         and looping, i.e., <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/if.html\"><tt>if<\/tt><\/a> and <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/while.html\"><tt>while<\/tt><\/a>) and short-circuit operators (i.e., <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/logicaloperatorsshortcircuit.html\">&amp;&amp; and | |<\/a>).\r\n      <\/p>\r\n   <\/introduction>\r\n   <h3>Contents<\/h3>\r\n   <div>\r\n      <ul>\r\n         <li><a href=\"#1\">Empty Arrays in Flow of Control<\/a><\/li>\r\n         <li><a href=\"#6\">Empty Arrays with Logical Operators<\/a><\/li>\r\n         <li><a href=\"#8\">Short-circuit Logical Operators (| | and &amp;&amp;)<\/a><\/li>\r\n         <li><a href=\"#11\">Examples<\/a><\/li>\r\n         <li><a href=\"#20\">References<\/a><\/li>\r\n         <li><a href=\"#21\">Empty Thoughts?<\/a><\/li>\r\n      <\/ul>\r\n   <\/div>\r\n   <h3>Empty Arrays in Flow of Control<a name=\"1\"><\/a><\/h3>\r\n   <p>Let me first start with plain empty arrays in flow of control situations. For example, what will this code do?<\/p><pre>    E = [];\r\n    if E\r\n       disp('Empty is true')\r\n    else\r\n       disp('Empty is false')\r\n    end<\/pre><p>Readers who remember my comment on last week's blog will correctly guess that the empty expression for the <tt>if<\/tt> statement is treated as <tt>false<\/tt>. Why?  The way I think about it is this.  If I am looking for locations of some condition in an array, and I don't find them,\r\n      I end up with an empty output.  This very output is the kind of expression I am likely to want to use, somehow, in an <tt>if<\/tt> statement.  Let's try it to be sure.\r\n   <\/p><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\">E = [];\r\n<span style=\"color: #0000FF\">if<\/span> E\r\n    disp(<span style=\"color: #A020F0\">'Empty is true'<\/span>)\r\n<span style=\"color: #0000FF\">else<\/span>\r\n    disp(<span style=\"color: #A020F0\">'Empty is false'<\/span>)\r\n<span style=\"color: #0000FF\">end<\/span><\/pre><pre style=\"font-style:oblique\">Empty is false\r\n<\/pre><p>The situation gets a bit more complicated if there is a logical expression for the <tt>if<\/tt> or <tt>while<\/tt> statement that has an empty array as one of its elements.  Let me show you what I mean.  Paraphrasing the documentation,\r\n   <\/p><pre> There are some conditions however under which while evaluates as true\r\n on an empty array. Two examples of this are<\/pre><pre>                  A = [];\r\n                  while all(A), doSomething, end\r\n                  while 1|A, doSomething, end<\/pre><p>Let's see what's going on in each of these examples.  In the first one, the function <tt>all<\/tt> is being called with an empty input.  According to the second reference below (on empty arrays), the function <tt>all<\/tt> is one of the functions that returns a nonzero value for empty input.  Let's see.\r\n   <\/p><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\">allE = all(E)\r\nallEislogical = islogical(allE)<\/pre><pre style=\"font-style:oblique\">allE =\r\n     1\r\nallEislogical =\r\n     1\r\n<\/pre><p>The way I think about this is that there are no <tt>false<\/tt> values in <tt>E<\/tt>, hence the <tt>true<\/tt> result.\r\n   <\/p>\r\n   <h3>Empty Arrays with Logical Operators<a name=\"6\"><\/a><\/h3>\r\n   <p>The second expression involves an elementwise logical operator ( | ).  In this case, the first part of the expression, <tt>1<\/tt>, is true, so the second part, after the elementwise <tt>or<\/tt>, is never evaluated. So the fact that an empty result returns <tt>false<\/tt> never comes into play here. Why?  Because &amp; and | operators short-circuit <i>when and only when they are in the context of <tt>if<\/tt> or <tt>while<\/tt> expressions<\/i>.  Otherwise, the elementwise operators do <b>not<\/b> short-circuit.\r\n   <\/p>\r\n   <p>In contrast, the logical operators, &amp;&amp; and | |, always short-circuit, regardless of context.<\/p>\r\n   <h3>Short-circuit Logical Operators (| | and &amp;&amp;)<a name=\"8\"><\/a><\/h3>\r\n   <p>The next important idea to remember is that the short-circuit logical operators expect scalars as the inputs for the expressions.\r\n       This means that an empty array, not being a scalar, may cause you some grief if you are unprepared for that situation.  Let\r\n      me show you what I mean.  Compare the following 2 code snippets.\r\n   <\/p><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\">true || E<\/pre><pre style=\"font-style:oblique\">ans =\r\n     1\r\n<\/pre><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\"><span style=\"color: #0000FF\">try<\/span>\r\n    E || true\r\n<span style=\"color: #0000FF\">catch<\/span> ME\r\n    disp(ME.message)\r\n<span style=\"color: #0000FF\">end<\/span><\/pre><pre style=\"font-style:oblique\">Operands to the || and &amp;&amp; operators must be convertible to logical scalar values.\r\n<\/pre><p>In the second snippet, the expression                E || true<\/p>\r\n   <p>produced an error, because E isn't a scalar value.  Once the error occurs, the second operand is never evaluated.  Contrast\r\n      that with the snippet, where the first input evaluates to <tt>true<\/tt>.  Short-circuiting then takes over and the second operand, which would cause an error in this context, is never evaluated.\r\n   <\/p>\r\n   <h3>Examples<a name=\"11\"><\/a><\/h3>\r\n   <p>Here are a few more code examples to help you see the patterns.  Try to figure out the answers before reading the results.<\/p><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\"><span style=\"color: #0000FF\">if<\/span> []\r\n    disp(<span style=\"color: #A020F0\">'hello'<\/span>)\r\n<span style=\"color: #0000FF\">else<\/span>\r\n    disp(<span style=\"color: #A020F0\">'bye'<\/span>)\r\n<span style=\"color: #0000FF\">end<\/span><\/pre><pre style=\"font-style:oblique\">bye\r\n<\/pre><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\">true | []<\/pre><pre style=\"font-style:oblique\">ans =\r\n     []\r\n<\/pre><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\">[] | true<\/pre><pre style=\"font-style:oblique\">ans =\r\n     []\r\n<\/pre><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\">true || []<\/pre><pre style=\"font-style:oblique\">ans =\r\n     1\r\n<\/pre><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\"><span style=\"color: #0000FF\">try<\/span>\r\n    [] || true\r\n<span style=\"color: #0000FF\">catch<\/span> ME\r\n    disp(ME.message)\r\n<span style=\"color: #0000FF\">end<\/span><\/pre><pre style=\"font-style:oblique\">Operands to the || and &amp;&amp; operators must be convertible to logical scalar values.\r\n<\/pre><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\"><span style=\"color: #0000FF\">if<\/span> true | []\r\n    disp(<span style=\"color: #A020F0\">'hello'<\/span>)\r\n<span style=\"color: #0000FF\">else<\/span>\r\n    disp(<span style=\"color: #A020F0\">'bye'<\/span>)\r\n<span style=\"color: #0000FF\">end<\/span><\/pre><pre style=\"font-style:oblique\">hello\r\n<\/pre><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\"><span style=\"color: #0000FF\">if<\/span> [] | true\r\n    disp(<span style=\"color: #A020F0\">'hello'<\/span>)\r\n<span style=\"color: #0000FF\">else<\/span>\r\n    disp(<span style=\"color: #A020F0\">'bye'<\/span>)\r\n<span style=\"color: #0000FF\">end<\/span><\/pre><pre style=\"font-style:oblique\">bye\r\n<\/pre><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\"><span style=\"color: #0000FF\">if<\/span> true || []\r\n    disp(<span style=\"color: #A020F0\">'hello'<\/span>)\r\n<span style=\"color: #0000FF\">else<\/span>\r\n    disp(<span style=\"color: #A020F0\">'bye'<\/span>)\r\n<span style=\"color: #0000FF\">end<\/span><\/pre><pre style=\"font-style:oblique\">hello\r\n<\/pre><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\"><span style=\"color: #0000FF\">try<\/span>\r\n    <span style=\"color: #0000FF\">if<\/span> [] || true\r\n        disp(<span style=\"color: #A020F0\">'hello'<\/span>)\r\n    <span style=\"color: #0000FF\">else<\/span>\r\n        disp(<span style=\"color: #A020F0\">'bye'<\/span>)\r\n    <span style=\"color: #0000FF\">end<\/span>\r\n<span style=\"color: #0000FF\">catch<\/span> ME\r\n    disp(ME.message)\r\n<span style=\"color: #0000FF\">end<\/span><\/pre><pre style=\"font-style:oblique\">Operands to the || and &amp;&amp; operators must be convertible to logical scalar values.\r\n<\/pre><h3>References<a name=\"20\"><\/a><\/h3>\r\n   <p>Here are a bunch of references to the MATLAB documentation where all of this information is covered.<\/p>\r\n   <div>\r\n      <ul>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/matlab_prog\/brqy1c1-1.html\">Program Control Statements<\/a><\/li>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/math\/f1-86359.html#f1-86384\">Empty Matrices, Scalars, and Vectors<\/a><\/li>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/while.html\">while statements<\/a><\/li>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/if.html\">if statements<\/a><\/li>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/logicaloperatorselementwise.html\">Elementwise Logical Operators<\/a><\/li>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/logicaloperatorsshortcircuit.html\">Short-circuit Logical Operators<\/a><\/li>\r\n      <\/ul>\r\n   <\/div>\r\n   <h3>Empty Thoughts?<a name=\"21\"><\/a><\/h3>\r\n   <p>The behaviors with empties in MATLAB are, I believe, consistent and useful. Nonetheless, the behaviors have lots of details\r\n      to master and can be confusing. If you have any thoughts on the matter, please respond <a href=\"https:\/\/blogs.mathworks.com\/loren\/?p=205#respond\">here<\/a>.\r\n   <\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_2dc14d48f43d4c9abf0452554923c38a() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='2dc14d48f43d4c9abf0452554923c38a ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 2dc14d48f43d4c9abf0452554923c38a';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Loren Shure';\r\n        copyright = 'Copyright 2009 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \r\n-->\r\n<\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_2dc14d48f43d4c9abf0452554923c38a()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.9<br><\/p>\r\n<\/div>\r\n<!--\r\n2dc14d48f43d4c9abf0452554923c38a ##### SOURCE BEGIN #####\r\n%% Empty Arrays with Flow of Control and Logical Operators\r\n% After reading\r\n% <https:\/\/blogs.mathworks.com\/loren\/2009\/11\/04\/calculus-with-empty-arrays\/ last week's post>\r\n% on calculating with empty arrays, one of my colleagues mentioned some\r\n% other behaviors with empty arrays that have tripped him up in the past.\r\n% Today I will discuss how empty arrays work in the contexts of flow of \r\n% control expressions (both conditional and looping, i.e.,  \r\n% <https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/if.html |if|> \r\n% and <https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/while.html |while|>)\r\n% and short-circuit operators (i.e.,\r\n% <https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/logicaloperatorsshortcircuit.html && and | |>).\r\n%% Empty Arrays in Flow of Control\r\n% Let me first start with plain empty arrays in flow of control situations.\r\n% For example, what will this code do?\r\n%\r\n%      E = [];\r\n%      if E\r\n%         disp('Empty is true')\r\n%      else\r\n%         disp('Empty is false')\r\n%      end\r\n%\r\n%%\r\n% Readers who remember my comment on last week's blog will correctly guess\r\n% that the empty expression for the |if| statement is treated as |false|.\r\n% Why?  The way I think about it is this.  If I am looking for locations of\r\n% some condition in an array, and I don't find them, I end up with an empty\r\n% output.  This very output is the kind of expression I am likely to want\r\n% to use, somehow, in an |if| statement.  Let's try it to be sure.\r\nE = [];\r\nif E\r\n    disp('Empty is true')\r\nelse\r\n    disp('Empty is false')\r\nend\r\n%% \r\n% The situation gets a bit more complicated if there is a logical\r\n% expression for the |if| or |while| statement that has an empty array as\r\n% one of its elements.  Let me show you what I mean.  Paraphrasing the\r\n% documentation,\r\n%\r\n%   There are some conditions however under which while evaluates as true\r\n%   on an empty array. Two examples of this are\r\n%\r\n%                    A = [];\r\n%                    while all(A), doSomething, end\r\n%                    while 1|A, doSomething, end\r\n%%\r\n% Let's see what's going on in each of these examples.  In the first one,\r\n% the function |all| is being called with an empty input.  According to the\r\n% second reference below (on empty arrays), the function |all| is one of\r\n% the functions that returns a nonzero value for empty input.  Let's see.\r\nallE = all(E)\r\nallEislogical = islogical(allE)\r\n%%\r\n% The way I think about this is that there are no |false| values in |E|,\r\n% hence the |true| result.\r\n%% Empty Arrays with Logical Operators\r\n% The second expression involves an elementwise logical operator ( | ).  In\r\n% this case, the first part of the expression, |1|, is true, so the second\r\n% part, after the elementwise |or|, is never evaluated. So the fact that an\r\n% empty result returns |false| never comes into play here.\r\n% Why?  Because & and | operators\r\n% short-circuit _when and only when they are in the context of |if| or \r\n% |while| expressions_.  Otherwise, the elementwise operators do *not*\r\n% short-circuit.\r\n%%\r\n% In contrast, the logical operators, && and | |, always short-circuit,\r\n% regardless of context.\r\n%% Short-circuit Logical Operators (| | and &&)\r\n% The next important idea to remember is that the short-circuit logical\r\n% operators expect scalars as the inputs for the expressions.  This means\r\n% that an empty array, not being a scalar, may cause you some grief if you\r\n% are unprepared for that situation.  Let me show you what I mean.  Compare\r\n% the following 2 code snippets.\r\ntrue || E\r\n%%\r\ntry\r\n    E || true\r\ncatch ME\r\n    disp(ME.message)\r\nend\r\n%%\r\n% In the second snippet, the expression\r\n%                E || true\r\n%\r\n% produced an error, because E isn't a scalar value.  Once the error\r\n% occurs, the second operand is never evaluated.  Contrast that with the\r\n% snippet, where the first input evaluates to |true|.  Short-circuiting\r\n% then takes over and the second operand, which would cause an error in\r\n% this context, is never evaluated.\r\n%% Examples\r\n% Here are a few more code examples to help you see the patterns.  Try to\r\n% figure out the answers before reading the results.\r\nif []\r\n    disp('hello')\r\nelse\r\n    disp('bye')\r\nend\r\n\r\n%%\r\ntrue | []\r\n%%\r\n[] | true\r\n%%\r\ntrue || []\r\n%%\r\ntry\r\n    [] || true\r\ncatch ME\r\n    disp(ME.message)\r\nend\r\n%%\r\nif true | []\r\n    disp('hello')\r\nelse\r\n    disp('bye')\r\nend\r\n%%\r\nif [] | true\r\n    disp('hello')\r\nelse\r\n    disp('bye')\r\nend\r\n%%\r\nif true || []\r\n    disp('hello')\r\nelse\r\n    disp('bye')\r\nend\r\n%%\r\ntry \r\n    if [] || true\r\n        disp('hello')\r\n    else\r\n        disp('bye')\r\n    end\r\ncatch ME\r\n    disp(ME.message)\r\nend\r\n%% References\r\n% Here are a bunch of references to the MATLAB documentation where all of\r\n% this information is covered.\r\n%\r\n% * <https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/matlab_prog\/brqy1c1-1.html Program Control Statements>\r\n% * <https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/math\/f1-86359.html#f1-86384 Empty Matrices, Scalars, and Vectors>\r\n% * <https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/while.html while statements>\r\n% * <https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/if.html if statements>\r\n% * <https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/logicaloperatorselementwise.html Elementwise Logical Operators>\r\n% * <https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/logicaloperatorsshortcircuit.html Short-circuit Logical Operators>\r\n%\r\n\r\n%% Empty Thoughts?\r\n% The behaviors with empties in MATLAB are, I believe, consistent and useful.\r\n% Nonetheless, the behaviors have lots of details to master and can be\r\n% confusing. If you have any thoughts on the matter, please respond\r\n% <https:\/\/blogs.mathworks.com\/loren\/?p=205#respond here>.\r\n##### SOURCE END ##### 2dc14d48f43d4c9abf0452554923c38a\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   \r\n      After reading last week's post on calculating with empty arrays, one of my colleagues mentioned some other behaviors with empty arrays that have tripped\r\n         him up in the past.... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/loren\/2009\/11\/12\/empty-arrays-with-flow-of-control-and-logical-operators\/\">read more >><\/a><\/p>","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[35,11],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/205"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}