HAL to Hyper Example

HAL example from: http://stateless.co/hal_specification.html

{
  "_links": {
    "self": {"href": "/orders"},
    "curies": [
      {
        "name": "ea",
        "href": "http://example.com/docs/rels/{rel}",
        "templated": true
      }
    ],
    "next": {"href": "/orders?page=2"},
    "ea:find": {"href": "/orders{?id}", "templated": true},
    "ea:admin": [
      {"href": "/admins/2", "title": "Fred"},
      {"href": "/admins/5", "title": "Kate"}
    ]
  },
  "currentlyProcessing": 14,
  "shippedToday": 20,
  "_embedded": {
    "ea:order": [
      {
        "_links": {
          "self": {"href": "/orders/123"},
          "ea:basket": {"href": "/baskets/98712"},
          "ea:customer": {"href": "/customers/7809"}
        },
        "total": 30,
        "currency": "USD",
        "status": "shipped"
      },
      {
        "_links": {
          "self": {"href": "/orders/124"},
          "ea:basket": {"href": "/baskets/97213"},
          "ea:customer": {"href": "/customers/12369"}
        },
        "total": 20,
        "currency": "USD",
        "status": "processing"
      }
    ]
  }
}

Hyper

{
  "h:head": {
    "curies": {"ea": "http://example.com/docs/rels/"}
  },
  "h:ref": {"self": "/orders", "next": "/orders?page=2"},
  "h:link": [
    {
      "rel": ["ea:find"],
      "uri": "/orders{?id}",
      "template": {"fields": {"id": {}}}
    },
    {"rel": ["ea:admin"], "label": "Fred", "uri": "/admins/2"},
    {"rel": ["ea:admin"], "label": "Kate", "uri": "/admins/5"}
  ],
  "currentlyProcessing": 14,
  "shippedToday": 20,
  "ea:order": [
    {
      "h:ref": {
        "self": "/orders/123",
        "ea:basket": "/baskets/98712",
        "ea:customer": "/customers/7809"
      },
      "total": 30,
      "currency": "USD",
      "status": "shipped"
    },
    {
      "h:ref": {
        "self": "/orders/124",
        "ea:basket": "/baskets/97213",
        "ea:customer": "/customers/12369"
      },
      "total": 20,
      "currency": "USD",
      "status": "processing"
    }
  ]
}