title: How to remove the "_embedded" property in Spring HATEOAS
body: <p>I'm using Spring Boot and HATEOAS to build a REST API and when my API returns a collection, it is wrapped inside a "_embedded" property, like so:  </p>
  
  <pre><code>{
     "_links":{
        "self":{
           "href":"http://localhost:8080/technologies"
        }
     },
     "_embedded":{
        "technologies":[
           {
              "id":1,
              "description":"A",
              "_links":{
                 "self":{
                    "href":"http://localhost:8080/technologies/1"
                 }
              }
           },
           {
              "id":2,
              "description":"B",
              "_links":{
                 "self":{
                    "href":"http://localhost:8080/technologies/2"
                 }
              }
           }
        ]
     }
  }
  </code></pre>
  
  <p>I want the response to be like this:</p>
  
  <pre><code>{
     "_links":{
        "self":{
           "href":"http://localhost:8080/technologies"
        }
     },
     "technologies":[
        {
           "id":1,
           "description":"A",
           "_links":{
              "self":{
                 "href":"http://localhost:8080/technologies/1"
              }
           }
        },
        {
           "id":2,
           "description":"B",
           "_links":{
              "self":{
                 "href":"http://localhost:8080/technologies/2"
              }
           }
        }
     ]
  }
  </code></pre>
  
  <p>My TechnologiesController:</p>
  
  <pre><code>@RestController
  @ExposesResourceFor(Technology.class)
  @RequestMapping(value = "/technologies")
  public class TechnologiesController {
      ...
      @ResquestMapping(method = RequestMethod.GET, produces = "application/vnd.xpto-technologies.text+json")
      public Resources&lt;Resource&lt;Technology&gt;&gt; getAllTechnologies() {
          List&lt;Technology&gt; technologies = technologyGateway.getAllTechnologies();
          Resources&lt;&lt;Resource&lt;Technology&gt;&gt; resources = new Resources&lt;Resource&lt;Technology&gt;&gt;(technologyResourceAssembler.toResources(technologies));
          resources.add(linkTo(methodOn(TechnologiesController.class).getAllTechnologies()).withSelfRel());
          return resources;
      }
  </code></pre>
  
  <p>The configuration class has the annotation @EnableHypermediaSupport(type = EnableHypermediaSupport.HypermediaType.HAL). </p>
  
  <p>What is the best way to produce the response without the "_embedded"?</p>