This is the output array when I do

```
result = JSON.parse(response.body)
result.values.each {|element|
puts element
}

```

Result:

```
{"id"=>3, "code"=>"3", "name"=>"Market", "status"=>"A", "refcode"=>"001"}
{"id"=>4, "code"=>"4", "name"=>"Mall", "status"=>"A", "refcode"=>"002"}

```

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

This is my expected output

```
Market
Mall

```