User tests: Successful: Unsuccessful:
add JSON_PRETTY_PRINT
to json_encode
to get human readable JSON output when exporting System Information.
Joomla 4 admin -> System -> System Information -> Download as JSON
Export is a single VERY long line unreadable by average humans.
{"info":{"php":"Linux ec6b3406c377 5.10.25-linuxkit #1 SMP Tue Mar 23 09:27:39 UTC 2021 x86_64","dbserver":"mysql","dbversion":"8.0.22","dbcollation":"utf8mb4_unicode_ci","dbconnectioncoll<snip>
Prettier output still useable by machines, but readable by humans, cats and printable on cups of coffee...
{
"info": {
"php": "Linux ec6b3406c377 5.10.25-linuxkit #1 SMP Tue Mar 23 09:27:39 UTC 2021 x86_64",
"dbserver": "mysql",
"dbversion": "8.0.22",
"dbcollation": "utf8mb4_unicode_ci",
"dbconnectioncollation": "utf8mb4_0900_ai_ci",
"dbconnectionencryption": "",
"dbconnencryptsupported": true,
"phpversion": "7.4.18",
"server": "nginx\/1.19.4",
"sapi_name": "fpm-fcgi",
"version": "Joomla! 4.0.0-beta8-dev Development [ Ma\u00f1ana ] 2-February-2021 20:02 GMT",
"useragent": "Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/14.1.1 Safari\/605.1.15"
},
<snip>
none
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_admin |
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-05-07 07:28:02 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
?
|
I have tested this item✅ successfully on 2898674
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33610.