I have the following JSON object:
$json = '{
"Name": "Peter",
"countries": {
"France": {
"A": "1",
"B": "2"
},
"Germany": {
"A": "10",
"B": "20"
},
....
}
}';
I want to parse the properties of the object in the property "countries" like an array. In Javascript I would the lodash function values. Is there in PHP any function to do that easily?
json_decodephp.net/manual/en/function.json-decode.php