title: How can I get the value of the name only on this array?
body: <p>This is the output array when I do</p>
  
  <pre><code>result = JSON.parse(response.body)
  result.values.each {|element|
  puts element
  }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>{"id"=&gt;3, "code"=&gt;"3", "name"=&gt;"Market", "status"=&gt;"A", "refcode"=&gt;"001"}
  {"id"=&gt;4, "code"=&gt;"4", "name"=&gt;"Mall", "status"=&gt;"A", "refcode"=&gt;"002"}
  </code></pre>
  
  <p>From this array, I only want to get the name value. I tried this 
  puts result['data'][0]['name'] and it worked fine but I want to get all the name in the array</p>
  
  <p>This is my expected output</p>
  
  <pre><code>Market
  Mall
  </code></pre>