I have this Json file what I want to do is access all the "name" attributes.Is there any way to access that attribute.And I want to do this with PHP (laravel). since this json got dynamic name I can't figure out a away to access this.
[
[
{
"2": {
"id": 2,
"name": "Asiri Medical Hospital - Kirula Road - Colombo 05",
"specializations": [
{
"id": 58,
"name": "Endocrinologist"
},
{
"id": 122,
"name": "Diabetologist"
}
]
},
"3": {
"id": 3,
"name": "Asiri Central Hospital - Norris Canal Road-Colombo 10",
"specializations": [
{
"id": 58,
"name": "Endocrinologist"
},
{
"id": 122,
"name": "Diabetologist"
}
]
},
"11": {
"id": 11,
"name": "Ninewells Care Mother and Baby Hospital (Pvt) Ltd",
"specializations": [
{
"id": 58,
"name": "Endocrinologist"
}
]
}
]
]