SQL से JSON Converter

उल्टा रूपांतरण चाहिए?
JSON to SQL Converter

SQL इनपुट

1

JSON आउटपुट

JSON में बदलने के लिए SQL डेटा दर्ज करें

कन्वर्ट किया गया डेटा यहाँ दिखाई देगा

SQL को JSON में कैसे convert करें

  1. स्टेप 1 – SQL INSERT statements paste करें

    • SQL dump/export से INSERT INTO ... VALUES ...; statements paste करें।
    • Tool semicolons से separated multiple INSERT statements support करता है।
    • Computer से .sql file import भी कर सकते/सकती हैं।
  2. स्टेप 2 – Conversion review करें

    • Tool SQL syntax parse करके column names को keys और values को data बनाता है।
    • Integers, booleans (TRUE/FALSE) और NULL JSON equivalents में convert होते हैं।
    • हर record में source table दिखाने के लिए _table field शामिल होता है।
  3. स्टेप 3 – JSON export करें

    • Formatted JSON array को APIs या config files के लिए copy करें।
    • Result को .json file के रूप में download करें।
    • Reverse के लिए related tools से JSON को वापस SQL में convert करें।
Example: SQL to JSON
// Input SQL
INSERT INTO users (id, role) VALUES (1, 'admin');

// Output JSON
[
  {
    "id": 1,
    "role": "admin",
    "_table": "users"
  }
]

Related tools

अक्सर पूछे जाने वाले सवाल

What SQL statements are supported?

Currently supports INSERT INTO statements with a VALUES clause. Each INSERT statement becomes a JSON object with column names as keys and the table name stored in a _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.

Is my data secure?

Yes, all data processing happens entirely in your browser. Your data is never sent to any server, ensuring complete privacy and security.

SQL से JSON Converter | JSONSwiss