Answer the question
In order to leave comments, you need to log in
How to properly get data from the converted JSON array into an object?
Good evening, I am writing authorization for the site through VKontakte. VK provides data in the form of a JSON array, but does it in such a way that attempts to get data from it using methods known to me are impossible.
object(stdClass)#4 (1) { ["response"]=> array(1) { [0]=> object(stdClass)#5 (4) { ["id"]=> int(1) ["first_name"]=> string(18) "Павел" ["last_name"]=> string(14) "Дуров" ["hidden"]=> int(0) } } }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question