title: Library to convert JSON string to Erlang record
body: <p>I've a large JSON string, I want to convert this string into Erlang record.
  I found <a href="https://github.com/davisp/jiffy" rel="nofollow noreferrer">jiffy</a> library but it doesn't completely convert to record.</p>
  
  <p>For example:
  <code>jiffy:decode(&lt;&lt;"{\"foo\":\"bar\"}"&gt;&gt;).</code>
  gives</p>
  
  <p><code>{[{&lt;&lt;"foo"&gt;&gt;,&lt;&lt;"bar"&gt;&gt;}]}</code></p>
  
  <p>but I want the following output:</p>
  
  <p><code>{ok,{obj,[{"foo",&lt;&lt;"bar"&gt;&gt;}]},[]}</code></p>
  
  <p>Is there any library that can be used for the desired output?</p>
  
  <p>Or is there any library that can be used in combination of <a href="https://github.com/davisp/jiffy" rel="nofollow noreferrer">jiffy</a> for further modifying the output of it.</p>
  
  <p>Consider the fact the JSON string is large, and I want the output is minimum time.</p>