Collection+JSON to Hyper Example

HAL example from: http://amundsen.com/media-types/collection/examples/

{
  "collection": {
    "version": "1.0",
    "href": "http://example.org/friends/",
    "links": [{"rel": "feed", "href": "http://example.org/friends/rss"}],
    "items": [
      {
        "href": "http://example.org/friends/jdoe",
        "data": [
          {"name": "full-name", "value": "J. Doe", "prompt": "Full Name"},
          {"name": "email", "value": "jdoe@example.org", "prompt": "Email"}
        ],
        "links": [
          {
            "rel": "blog",
            "href": "http://examples.org/blogs/jdoe",
            "prompt": "Blog"
          },
          {
            "rel": "avatar",
            "href": "http://examples.org/images/jdoe",
            "prompt": "Avatar",
            "render": "image"
          }
        ]
      },
      {
        "href": "http://example.org/friends/msmith",
        "data": [
          {"name": "full-name", "value": "M. Smith", "prompt": "Full Name"},
          {"name": "email", "value": "msmith@example.org", "prompt": "Email"}
        ],
        "links": [
          {
            "rel": "blog",
            "href": "http://examples.org/blogs/msmith",
            "prompt": "Blog"
          },
          {
            "rel": "avatar",
            "href": "http://examples.org/images/msmith",
            "prompt": "Avatar",
            "render": "image"
          }
        ]
      },
      {
        "href": "http://example.org/friends/rwilliams",
        "data": [
          {"name": "full-name", "value": "R. Williams", "prompt": "Full Name"},
          {"name": "email", "value": "rwilliams@example.org", "prompt": "Email"}
        ],
        "links": [
          {
            "rel": "blog",
            "href": "http://examples.org/blogs/rwilliams",
            "prompt": "Blog"
          },
          {
            "rel": "avatar",
            "href": "http://examples.org/images/rwilliams",
            "prompt": "Avatar",
            "render": "image"
          }
        ]
      }
    ],
    "queries": [
      {
        "rel": "search",
        "href": "http://example.org/friends/search",
        "prompt": "Search",
        "data": [{"name": "search", "value": ""}]
      }
    ],
    "template": {
      "data": [
        {"name": "full-name", "value": "", "prompt": "Full Name"},
        {"name": "email", "value": "", "prompt": "Email"},
        {"name": "blog", "value": "", "prompt": "Blog"},
        {"name": "avatar", "value": "", "prompt": "Avatar"}
      ]
    }
  }
}

Hyper

{
  "h:head": {
    "curies": {
      "cj": "http://amundsen.com/media-types/collection/format/#objects"
    }
  },
  "h:ref": {
    "self": "http://example.org/friends/",
    "feed": "http://example.org/friends/rss"
  },
  "cj:items": [
    {
      "h:ref": {"self": "http://example.org/friends/jdoe"},
      "cj:data": [
        {"full-name": "J. Doe", "h:label": "Full Name"},
        {"email": "jdoe@example.org", "h:label": "E-Mail"}
      ],
      "h:link": [
        {
          "rel": ["blog"],
          "uri": "http://examples.org/blogs/jdoe",
          "h:label": "Blog"
        },
        {
          "rel": ["avatar"],
          "uri": "http://examples.org/images/jdoe",
          "h:label": "Avatar",
          "embed": "image/*"
        }
      ]
    },
    {
      "h:ref": {"self": "http://example.org/friends/msmith"},
      "cj:data": [
        {"full-name": "M. Smith", "h:label": "Full Name"},
        {"email": "msmith@example.org", "h:label": "E-Mail"}
      ],
      "h:link": [
        {
          "rel": ["blog"],
          "uri": "http://examples.org/blogs/msmith",
          "h:label": "Blog"
        },
        {
          "rel": ["avatar"],
          "uri": "http://examples.org/images/msmith",
          "h:label": "Avatar",
          "embed": "image/*"
        }
      ]
    },
    {
      "h:ref": {"self": "http://example.org/friends/rwilliams"},
      "cj:data": [
        {"full-name": "R. Williams", "h:label": "Full Name"},
        {"email": "rwilliams@example.org", "h:label": "E-Mail"}
      ],
      "h:link": [
        {
          "rel": ["blog"],
          "uri": "http://examples.org/blogs/rwilliams",
          "h:label": "Blog"
        },
        {
          "rel": ["avatar"],
          "uri": "http://examples.org/images/rwilliams",
          "h:label": "Avatar",
          "embed": "image/*"
        }
      ]
    }
  ],
  "h:link": [
    {
      "rel": "search",
      "uri": "http://example.org/friends/search",
      "h:label": "Search",
      "fields": {"search": {}}
    },
    {
      "rel": "search",
      "uri": "http://example.org/friends/search",
      "h:label": "Search",
      "fields": {
        "full-name": {"h:label": "Full Name"},
        "email": {"h:label": "Email"},
        "blog": {"h:label": "Blog"},
        "avatar": {"h:label": "Avatar"}
      }
    }
  ]
}