JSON_PRETTY (Lakehouse v2)
Formats a JSON value with indentation for readability.
Analyze Syntax
Section titled “Analyze Syntax”func.json_pretty(get_column(table, 'data'))Analyze Examples
Section titled “Analyze Examples”func.json_pretty(get_column(table, 'data'))
┌──────────────────┐│ (formatted JSON) │└──────────────────┘SQL Syntax
Section titled “SQL Syntax”JSON_PRETTY(<data>)SQL Examples
Section titled “SQL Examples”SELECT JSON_PRETTY(PARSE_JSON('{"name":"Alice","age":30}'));
┌────────────────────────────────────┐│ { "name": "Alice", "age": 30} │└────────────────────────────────────┘