Answer the question
In order to leave comments, you need to log in
How to conveniently view arrays and json?
Is there any function or class?
Answer the question
In order to leave comments, you need to log in
If you need to display beautifully, the json you output.
You can use the plugin for chrome.
https://chrome.google.com/webstore/detail/jsonview...
To conveniently view large arrays, I display them like this:
<? echo 'var my_beauty_object = JSON.parse(`'.json_encode($my_big_array).'`);<br>console.clear();<br>console.log(my_beauty_object);'; ?>
then received in the chrome developer console and I get a beautiful collapsible / expandable json object
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question