JSON_PRETTY
Learn how to use the JSON_PRETTY json function in PlaidCloud Lakehouse. Formats a JSON value with indentation for readability - with syntax and examples.
Formats a JSON value with indentation for readability.
Analyze Syntax
func.json_pretty(get_column(table, 'data'))
Analyze Examples
func.json_pretty(get_column(table, 'data'))
┌──────────────────┐
│ (formatted JSON) │
└──────────────────┘
SQL Syntax
JSON_PRETTY(<data>)
SQL Examples
SELECT JSON_PRETTY(PARSE_JSON('{"name":"Alice","age":30}'));
┌────────────────────────────────────┐
│ {
"name": "Alice",
"age": 30
} │
└────────────────────────────────────┘