title: Elixir: How to convert a keyword list to a map?
body: <p>I have a keyword list of Ecto changeset errors I'd like to convert to a map so that the Poison JSON parser can correctly output a list of validation errors in the JSON format.</p>
  
  <p>I get a list of errors as follows:</p>
  
  <pre><code>[:topic_id, "can't be blank", :created_by, "can't be blank"]
  </code></pre>
  
  <p>...and I'd like to get a map of errors like so:</p>
  
  <pre><code>%{topic_id: "can't be blank", created_by: "can't be blank"}
  </code></pre>
  
  <p>Alternatively, if I could convert it to a list of strings, I could use that as well.</p>
  
  <p>What is the best way to accomplish either of these tasks?</p>