SQL to JSON Converter

Convert SQL INSERT statements to JSON format

SQL Input

Loading...

JSON Output

Enter SQL data to convert to JSON

Your converted data will appear here

Frequently Asked Questions

What SQL statements are supported?

Currently supports INSERT INTO statements with VALUES clause. Each INSERT statement becomes a JSON object with column names as keys and the table name stored in '_table' field.

How are SQL data types converted?

NULL → null, quoted strings → strings, numbers → numbers, TRUE/FALSE → booleans. Complex values are treated as strings and may need additional parsing.

Can I process multiple INSERT statements?

Yes! The converter processes all INSERT statements in the input and creates an array of JSON objects, one for each INSERT statement.

What about other SQL statements?

Currently only INSERT statements are supported. CREATE TABLE, SELECT, UPDATE, and DELETE statements are not processed but won't cause errors.