Answer the question
In order to leave comments, you need to log in
How to iterate over an object of objects?
From the API comes a stdClass object with nested stdClass objects in which more objects are also nested, etc. I need to validate this response. There are a number of properties that must be of a certain format. These properties are at different levels and the name of the property can be repeated in different objects.
What can you advise? I'm not asking you to throw out the code directly to me. But to give direction in the direction of which algorithms to look at?
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