title: Erlang: Parse string to json
body: <p>I have the following string:   </p>
  
  <pre><code>"{\"headers\":[\"CNPJ\",\"PDF\",\"error\"],\"rows\":[[\"17192451000170\",\"FILE:application/pdf;170286;\",null],[\"234566767544\",\"FILE:application/pdf;456378;\",null],[\"233456767544\",\"FILE:application/pdf;456378;\",null]]}"
  </code></pre>
  
  <p>how do I parse it to a normal Json format?</p>
  
  <p>meaning: </p>
  
  <pre><code>{"rows" :[
   {"CNPJ":"17192451000170","PDF":"FILE:application/pdf;170286;","error":null},
   {"CNPJ":"17192451000170","PDF":"FILE:application/pdf;170286;","error":null},
   {"CNPJ":"17192451000170", "PDF":"FILE:application/pdf;170286;,"error":null"}
  ]}
  </code></pre>
  
  <p>or any other json format</p>