SQL을 JSON으로 변환

역변환이 필요하신가요?
JSON to SQL Converter

SQL 입력

1

JSON 출력

SQL 데이터를 입력하여 JSON(으)로 변환하세요

변환된 데이터가 여기에 표시됩니다

SQL을 JSON으로 변환하는 방법

  1. 1단계 – SQL INSERT 문 붙여넣기

    • SQL 덤프/내보내기에서 INSERT INTO ... VALUES ...; 문을 붙여넣으세요.
    • 세미콜론으로 구분된 여러 INSERT 문을 지원합니다.
    • .sql 파일을 컴퓨터에서 가져올 수 있습니다.
  2. 2단계 – 변환 결과 확인

    • 도구가 SQL 문법을 파싱해 컬럼을 키로, 값을 데이터로 추출합니다.
    • 정수, 불리언(TRUE/FALSE), NULL은 JSON 등가로 변환됩니다.
    • 각 레코드에는 원본 테이블을 나타내는 _table 필드가 포함됩니다.
  3. 3단계 – JSON 내보내기

    • 포맷된 JSON 배열을 복사해 API나 설정 파일에 사용할 수 있습니다.
    • 결과를 .json 파일로 다운로드하세요.
    • 역변환이 필요하면 관련 도구로 JSON→SQL을 사용하세요.
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으로 변환 | JSONSwiss