Withdata Software

Convert SQL to JSON array

Want to convert SQL to JSON array?

Try Withdata Data File Converter, a desktop SQL to JSON converter for Windows, MacOS, and Linux, Convert SQL to JSON array, Easy and Fast.

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 SQL to JSON array

Choose SQL file -> Set target JSON array file -> Convert SQL to JSON array

Click “Start a New Convert” at task dialog.

then show the wizard.

Select source/target file type.

1. Open a SQL file.

The SQL file content:

2. Config target JSON array file.

3. Set rows options.

4. Convert SQL to JSON array.

See JSON array file

Convert SQL to JSON array in command line

Save “SQL to JSON array” session, then you can:

Set scheduled tasks for converting SQL to JSON array

You can schedule and automate this converting task by:

  1. Save session and create .bat (Windows) or .sh (Linux/macOS) file for “SQL to JSON array” conversion.
  2. Set scheduled task for “SQL to JSON array” conversion.

FAQ

What is Withdata DataFileConverter?
Withdata DataFileConverter is a data file format converter, it can convert SQL to JSON array. Download Withdata DataFileConverter
How long does it take to convert SQL to JSON array?
DataFileConverter works fast. It convert millions of rows within a minute.
Is it safe to convert SQL to JSON array using DataFileConverter?
Of course! DataFileConverter convert SQL to JSON array privately, absolutely safe.
Can I convert SQL to JSON array on Linux, Mac OS?
Yes, you can. DataFileConverter has Linux, Mac OS, and Windows version.
Can I convert SQL to JSON array in command line?
Yes, you can. DataFileConverter can running in command line, on Linux, Mac OS, and Windows.

More about Withdata DataFileConverter – SQL to JSON array Converter

SQL → JSON Array reference

Type mapping

Value kindin SQLin JSON Array
IntINT1234 (number)
BigintBIGINT9007199254740993
DecimalDECIMAL(p,s)1234.56 (number)
FloatDOUBLE PRECISION1.234e10 (number)
TextVARCHAR(n)"text" (string)
Long textTEXT / CLOB"multi-line\ntext" (escaped newline inside a string)
DateDATE"2026-09-18" (string)
DatetimeTIMESTAMP"2026-09-18T14:30:00Z" (string)
BinaryBLOB / BYTEA"base64:..." (string)
BooleanBOOLEAN / SMALLINTtrue / false (boolean)
JSONJSON / TEXTnested object or array, kept as structure

Dialect differences

Both SQL and JSON Array are file formats, so what differs below is how each one chooses to represent a value.

Propertyin SQLin JSON Array
identifiersTwo competing conventions: single-quoted literals and diale...Double quotes; backslash escapes
datesDepends on the dialect: DATE literals, TO_DATE(), or plain ...No date type: dates arrive as strings and the reader must p...
binaryDialect-specific: X-quoted literal, 0x hex, or decode()Not supported natively - base64 inside a string
separatorStatement terminators (;)Braces and commas
encodingNo declarationUTF-8 by definition
typingTypes belong to the target database, and they differ betwee...string, number, boolean, null, object, array - no date type
shapeStatements; a dump usually means CREATE TABLE plus INSERT rowsNested objects and arrays
ceilingNo formal limit, but a single INSERT statement has to fit i...Whole document is usually parsed into memory

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.