JSON_OBJECT
Learn how to use the JSON_OBJECT json function in PlaidCloud Lakehouse. Creates a JSON object from key-value pairs - see syntax, examples, and output.
Creates a JSON object from key-value pairs.
Analyze Syntax
func.json_object('name', 'Alice', 'age', 30)
Analyze Examples
func.json_object('name', 'Alice', 'age', 30)
┌───────────────────────────┐
│ {"name":"Alice","age":30} │
└───────────────────────────┘
SQL Syntax
JSON_OBJECT('name', 'Alice', 'age', 30)
SQL Examples
SELECT JSON_OBJECT('name', 'Alice', 'age', 30);
┌───────────────────────────┐
│ {"name":"Alice","age":30} │
└───────────────────────────┘