I have a hash:
a = {
"person" => [
{
"age" => ["0"],
"details" => [
{
"hobby" => ["6"],
"interest" => ["programming"]
}
]
}
]
}
I would like to get the value of the "details". The easy way to do it will be
a["person"].first["details"].first
But, it is too long and doesn't look good. Is there any other way I can do this?