14.03.2023, 15:00
When communicating with API's, we often get replys with som intricate system of data in tables.
For instance, one reply would be: responce["response"][1]["more_response"], responce["response"][2]["more_response"], responce["response"][xx+]["more_response"].
Is there any way to just show how many "[xx]" there are in the responce table? as this is dynamic, the rest of my code is dependent of knowing this.
Thanks in advance.
For instance, one reply would be: responce["response"][1]["more_response"], responce["response"][2]["more_response"], responce["response"][xx+]["more_response"].
Is there any way to just show how many "[xx]" there are in the responce table? as this is dynamic, the rest of my code is dependent of knowing this.
Thanks in advance.