I am looking for a way to display a JSON object that is returned from an API call in a component.
The tricky part is that this response doesn't have a consistent structure and varies based on the API execution.
At times, it may be a simple array, while other times it could be an array of objects, etc...
Is there a method to render this data without prior knowledge of its structure?
For those familiar with PHP development, I need something similar to the print_r function...
Thank you. Best regards.