Change keyword list to map for json encoding

Oh, thought [{:a, 1}, {:b, 2}] is a keyword list. But right, I have maps, aiiii.

The JSON I would like to get should look this way:

{
  "next":"http://www.example.com/test?foo=bar&page=4",
  "prev":"http://www.example.com/test?foo=bar&page=2",
  "first":"http://www.example.com/test?foo=bar&page=1",
  "last":"http://www.example.com/test?foo=bar&page=5"
}