title: Append Multiple Attributes coming from JSON to a Anchor tag in thymeleaf
body: <p>Is there any way to append attributes coming in a single string from JSON to a anchor tag in thymeleaf?</p>
  <p>if the attributes are separate we can iterate and assign attributes, but in this case all the attributes comes from same json field.</p>
  <p><strong>Example:</strong><br/>
  JSON:</p>
  <pre><code>{
  linkAttrs = &quot; href=\&quot;https://website.com\&quot; attr1=\&quot;abc\&quot; attr2=\&quot;value\&quot; attr3=\&quot;\&quot; &quot;
  }
  </code></pre>
  <p>Append to Link Like:</p>
  <pre><code>&lt;a + ${json.linkAttrs}+&gt;LinkText&lt;/a&gt;
  </code></pre>
  <p>Expected Output:</p>
  <pre><code>&lt;a href=&quot;https://website.com&quot; attr1=&quot;abc&quot; attr2=&quot;value&quot; attr3=&quot;&quot;&gt;LinkText&lt;/a&gt;
  </code></pre>