title: How to represent collections in HAL (JSON version) while following REST
body: <p>Let's say I have a collection of books which we'll call a library.  GET domain.com/library should return a list of books in the library in HAL compliant JSON. How should I format the JSON? How could I embed the book resources? Here is the format I'm currently thinking about:</p>
  
  <pre><code>{
    "books": [
        {
            "name": "Fight Club",
            "_links": {
                "self": { 
                    "href": "domain.com/library/Fight-Club"
                },
             },
             ...
        },
         ....
    ],
    "_links" : {
         "search": { 
             "href": "domain.com/library/search"
         },
         ...
     },
     "_embedded" : {
         "Fight Club": {
             "author": "Chuck Palahniuk",
             ...
             [Same links as above]
         }
     }
  }
  </code></pre>