Want to convert JSON array to SQL file?
Try Withdata Data File Converter, a desktop JSON to SQL converter for Windows, MacOS, and Linux, Convert JSON array to SQL, Easy and Fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Convert files locally and privately, avoid uploading JSON file(s) to online services.
Download DataFileConverter
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit
Convert JSON array to SQL
Choose JSON array file -> Set SQL file -> Convert JSON array to SQL
“Start a New Convert” for “JSON array to SQL”.
Select From “File” “JSON” To “File” “SQL”.
1. Open source JSON array file.
Support large JSON array file (big than 4GB).
Source JSON array file’s content is like this:
2. Config target SQL file.
3. Set rows options.
4. Convert JSON array to SQL.
After converting, you can view the output SQL file.
Convert JSON array to SQL in command line
Save “JSON array to SQL” session, then you can:
- Convert JSON array to SQL in Windows command line.
- Convert JSON array to SQL in Linux command line.
- Convert JSON array to SQL in macOS command line.
Set scheduled tasks for converting JSON array to SQL
You can schedule and automate this “JSON array to SQL” conversion task by:
- Save session and create .bat (Windows) or .sh (Linux/macOS) file for “JSON array to SQL” conversion.
- Set scheduled task for “JSON array to SQL” conversion.
FAQ
More about Withdata DataFileConverter – JSON array to SQL converter
Download Withdata DataFileConverter
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit
JSON Array → SQL reference
Type mapping
| Value kind | in JSON Array | in SQL |
|---|---|---|
| Int | 1234 (number) | INT |
| Bigint | 9007199254740993 | BIGINT |
| Decimal | 1234.56 (number) | DECIMAL(p,s) |
| Float | 1.234e10 (number) | DOUBLE PRECISION |
| Text | "text" (string) | VARCHAR(n) |
| Long text | "multi-line\ntext" (escaped newline inside a string) | TEXT / CLOB |
| Date | "2026-09-18" (string) | DATE |
| Datetime | "2026-09-18T14:30:00Z" (string) | TIMESTAMP |
| Binary | "base64:..." (string) | BLOB / BYTEA |
| Boolean | true / false (boolean) | BOOLEAN / SMALLINT |
| JSON | nested object or array, kept as structure | JSON / TEXT |
Dialect differences
Both JSON Array and SQL are file formats, so what differs below is how each one chooses to represent a value.
| Property | in JSON Array | in SQL |
|---|---|---|
| identifiers | Double quotes; backslash escapes | Two competing conventions: single-quoted literals and diale... |
| dates | No date type: dates arrive as strings and the reader must p... | Depends on the dialect: DATE literals, TO_DATE(), or plain ... |
| binary | Not supported natively - base64 inside a string | Dialect-specific: X-quoted literal, 0x hex, or decode() |
| separator | Braces and commas | Statement terminators (;) |
| encoding | UTF-8 by definition | No declaration |
| typing | string, number, boolean, null, object, array - no date type | Types belong to the target database, and they differ betwee... |
| shape | Nested objects and arrays | Statements; a dump usually means CREATE TABLE plus INSERT rows |
| ceiling | Whole document is usually parsed into memory | No formal limit, but a single INSERT statement has to fit i... |
Data File Converter without the manual work
For batch jobs, large files and scheduling use the Data File Converter converter — an offline desktop app for Windows, Linux and macOS. Free trial.