json

jsonb_pretty

Formats jsonb as indented text for human reading, not a canonical wire representation.

Formal Syntax & Structure

sql syntaxsql
jsonb_pretty(jsonb)

Working Example

Example Snippetsql
SELECT jsonb_pretty('{"a":7}');
SQL Reference