I have the following JSON format:
"also_known_as" : [ "Superman" ],
"business" : { "copyright_holder" : [ [ "Copyright MCMXLII Walt Disney Productions (on print)",
" Walt Disney Productions",
" 28 February 1942",
" LP12270 (in copyright registry)"
] ]
So I'm able to parse to get the "also_known_as" section using:
$json_a = json_decode($THE_API_URL);
foreach($json_a as $mydata) {
echo $mydata->also_known_as[0]
}
However can't get the date in the copyright_holder section i.e. "28 February 1942". Could someone please help me with the syntax.
Thanks.