Ruby - Formatting json into string
<p>I need to convert a JSON response into a well-formatted string, more like a table.</p>

<p>Example,</p>

<pre><code>[{id: 1, name: "Panda", description: ""}, {id: 2, name: "koala", description: ""},...]
</code></pre>

<p>To be converted as,</p>

<pre><code> Id       | Name        |Description
 1        | Panda       |
 2        | Koala test  | 
</code></pre>

<p>and for the text to be automatically wrapped inside the cell width. 
Any help would be appreciated. 
Thank you. </p>