In MariaDB, JSON_DETAILED()
is a built-in function that takes a JSON document, and returns it in a more human-readable format.
This is sometimes referred to as prettifying the document. It’s similar to MySQL’s JSON_PRETTY()
function.
For the opposite effect (i.e. to condense a JSON document down), use the JSON_COMPACT()
function.