JSON
JSON is a common format for semi-structured data. DuckDB can read JSON files and load the results into MotherDuck for SQL analytics.
How it works with MotherDuck
- Connect to MotherDuck from a DuckDB client.
- Use
read_jsonfor JSON files, newline-delimited JSON, or JSON arrays. - Create a MotherDuck table once you have the schema and options you want.
Example
CREATE TABLE my_table AS
SELECT *
FROM read_json('events.json');