How can i convert an array into an object of key-value pairs, where keys are previous value in array? : I am trying to convert an array like this into an object:

    [
        "a",
        "11993",
        "b",
        "18486",
        "c",
        "13240388"
    ]
by grouping by 2 where first item is key and second is value:
Here is the desired outcome:

    {
        "a"=>"11993",
        "b"=>"18486",
        "c"=>"13240388"
    }