Answer the question
In order to leave comments, you need to log in
How to take neighbor object in object(stdClass) when parsing JSON?
Hello! There was a small problem when parsing json:
After passing json through json_decode, I get a couple of thousand objects like this:
object(stdClass)#1103 (3) {
["name"]=>
string(7) "TTSfs13"
["type"]=>
array(4) {
[0]=>
object(stdClass)#1104 (3) {
["availability"]=>
string(11) "unavailable"
["warehouse"]=>
string(3) "231"
}
[1]=>
object(stdClass)#1105 (3) {
["availability"]=>
string(11) "unavailable"
["warehouse"]=>
string(3) "443"
}
}
}
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