json - PHP Unexpected runtime added dynamic property
one text
Solution:
By default, json_decode
returns an object with the previos keys as properties. If you want to get back an array, pass true
as a second parameter. See https://www.php.net/manual/en/function.json-decode.php