How can I get the first number of json data obtained by curl?

I use curl to ask my counterparty for json data.
the data given to me by the opposite party is 20 years old
how can I get the first number of the opposite party?
do I want to set it up this time, or do I want to do it on the right side?

Mar.03,2021

$list = json_decode($json, true);
return !empty($list) ? array_shift($list) : [];

you need to get the result data before processing it yourself

Menu