← Back to directory

Turn an array of JSON objects (API results, scraped records) into ready-to-run S...

https://agents.204-168-199-108.sslip.io/v1/util/json-to-sql

Overview

Turn an array of JSON objects (API results, scraped records) into ready-to-run SQL. Infers each column's type across all rows (INTEGER/BIGINT, DOUBLE, BOOLEAN, DATE, TIMESTAMP, JSON/JSONB for nested objects, TEXT/VARCHAR), NOT NULL where no row is empty, PRIMARY KEY on a unique 'id', quotes identifiers and escapes strings correctly for postgres, mysql or sqlite, and batches multi-row INSERTs (batch_size). Returns columns, create_table, inserts[] and the full sql script. Up to

Protocol x402
Price $0.0010
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider JSON to SQL insert generator
Source bazaar
Indexed 2026-12-01 21:26:57

Health

Status healthy
Latency (p50) 123ms
Uptime (30d) 100.0%
Reliability Score 97/100
Last Checked 2026-12-05 14:37:12
Last Healthy 2026-12-05 14:37:12
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "dialect": "postgres", "json": "[{\"id\":1,\"name\":\"O'Brien Ltd\",\"active\":true,\"balance\":1250.5,\"created_at\":\"2026-11-30T10:15:00Z\",\"tags\":[\"vip\",\"eu\"]},{\"id\":2,\"name\":\"Acme\",\"active\":false,\"balance\":0,\"created_at\":\"2026-12-01T08:00:00Z\",\"tags\":[]},{\"id\":3,\"name\":\"Globex\",\"active\":true,\"balance\":null,\"created_at\":\"2026-12-01T09:30:00Z\",\"tags\":[\"us\"]}]", "table": "customers" }, "type": "http" }

Output Schema

{ "example": { "columns": [ { "column": "\"id\"", "name": "id", "nullable": false, "primary_key": true, "type": "INTEGER" }, { "column": "\"name\"", "name": "name", "nullable": false, "type": "TEXT" }, { "column": "\"active\"", "name": "active", "nullable": false, "type": "BOOLEAN" }, { "column": "\"balance\"", "name": "balance", "nullable": true, "type": "DOUBLE PRECISION" }, { "column": "\"created_at\"", "name": "created_at", "nullable": false, "type": "TIMESTAMPTZ" }, { "column": "\"tags\"", "name": "tags", "nullable": false, "type": "JSONB" } ], "create_table": "CREATE TABLE IF NOT EXISTS \"customers\" (\n \"id\" INTEGER PRIMARY KEY,\n \"name\" TEXT NOT NULL,\n \"active\" BOOLEAN NOT NULL,\n \"balance\" DOUBLE PRECISION,\n \"created_at\" TIMESTAMPTZ NOT NULL,\n \"tags\" JSONB NOT NULL\n);", "dialect": "postgres", "inserts": [ "INSERT INTO \"customers\" (\"id\", \"name\", \"active\", \"balance\", \"created_at\", \"tags\") VALUES\n (1, 'O''Brien Ltd', TRUE, 1250.5, '2026-11-30T10:15:00Z', '[\"vip\",\"eu\"]'),\n (2, 'Acme', FALSE, 0, '2026-12-01T08:00:00Z', '[]'),\n (3, 'Globex', TRUE, NULL, '2026-12-01T09:30:00Z', '[\"us\"]');" ], "note": "Types inferred from all rows; nested objects/arrays become JSON. Strings are quoted and escaped for the chosen dialect. Review before running on production.", "rows": 3, "sql": "CREATE TABLE IF NOT EXISTS \"customers\" (\n \"id\" INTEGER PRIMARY KEY,\n \"name\" TEXT NOT NULL,\n \"active\" BOOLEAN NOT NULL,\n \"balance\" DOUBLE PRECISION,\n \"created_at\" TIMESTAMPTZ NOT NULL,\n \"tags\" JSONB NOT NULL\n);\n\nINSERT INTO \"customers\" (\"id\", \"name\", \"active\", \"balance\", \"created_at\", \"tags\") VALUES\n (1, 'O''Brien Ltd', TRUE, 1250.5, '2026-11-30T10:15:00Z', '[\"vip\",\"eu\"]'),\n (2, 'Acme', FALSE, 0, '2026-12-01T08:00:00Z', '[]'),\n (3, 'Globex', TRUE, NULL, '2026-12-01T09:30:00Z', '[\"us\"]');", "table": "\"customers\"" }, "type": "json" }

Recent Health Checks

Time Status HTTP Latency Error
2026-12-05 14:37:12 healthy 402 266ms
2026-12-05 13:36:47 healthy 402 621ms
2026-12-05 12:36:08 healthy 402 119ms
2026-12-05 11:41:32 healthy 402 112ms
2026-12-05 10:36:40 healthy 402 110ms
2026-12-05 09:35:36 healthy 402 111ms
2026-12-05 08:39:28 healthy 402 119ms
2026-12-05 07:35:41 healthy 402 126ms
2026-12-05 06:33:19 healthy 402 123ms
2026-12-05 05:34:09 healthy 402 1307ms
2026-12-05 03:45:17 healthy 402 111ms
2026-12-05 02:34:58 healthy 402 112ms
2026-12-05 01:33:59 healthy 402 1319ms
2026-12-05 00:57:55 healthy 402 4224ms
2026-12-04 17:55:44 healthy 402 2769ms