LOOP ARRAY OF HASHES

Please how can i loop this to have all values of _id, contact, sent,
answer, repondant?

{
    "result" : [
        {
            "_id" : null,
            "contact" : 45684,
            "sent" : 0,
            "answer" : 0,
            "repondant" : 0
        },
        {
            "_id" : "vms",
            "contact" : 6340,
            "sent" : 6340,
            "answer" : 0,
            "repondant" : 0
        },
        {
            "_id" : "sms",
            "contact" : 27356,
            "sent" : 41344,
            "answer" : 0,
            "repondant" : 0
        }
    ],
    "ok" : 1
}

Thank you very much

Might be you can use like this way the JSON

  json = JSON.parse(value)
    json["result"].each do |item|
    # do something
  end

Please how can i loop this to have all values of _id, contact, sent,
answer, repondant?

{
“result” : [
{
“_id” : null,
“contact” : 45684,
“sent” : 0,
“answer” : 0,
“repondant” : 0
},
{
“_id” : “vms”,
“contact” : 6340,
“sent” : 6340,
“answer” : 0,
“repondant” : 0
},
{
“_id” : “sms”,
“contact” : 27356,
“sent” : 41344,
“answer” : 0,
“repondant” : 0
}
],
“ok” : 1
}

Thank you very much

Which bit don’t you know how to do? Access the result array, iterate the array, access the individual elements, or print the values?

Colin