title: How to change HAL links format using Spring HATEOAS
body: <p>I'm building a Spring REST application using Spring HATEOAS (0.16.0.RELEASE) and I'd like the JSON links output to look like:</p>
  
  <pre><code>_links: {
     self: {
       href: "https://&lt;ip&gt;/api/policies/321"
     }
  }
  </code></pre>
  
  <p>while it renders like:</p>
  
  <pre><code>   "links":
        [{
         "rel":"self",
         "href":"http://&lt;ip&gt;/api/policies/321"
        }]
  </code></pre>
  
  <p>I'm using HATEOAS <code>Resource</code> and <code>ResourceAssembler</code>.</p>
  
  <p>Why do I get this format instead of the other? How can I change it?</p>