빅데이터/AWS
json과 jsonl의 차이점
프리스케이터
2024. 11. 5. 08:00
json과 jsonl의 차이점을 알아보았어요
JSON (JavaScript Object Notation;제이슨):
test.json
{
"name": "John Doe",
"age": 30,
"city": "New York"
}
JSON은 전체 데이터를 하나의 구조화된 객체로 표현합니다.
JSONL (JSON Lines;제이슨엘):
test.jsonl
{"name": "John Doe", "age": 30, "city": "New York"}
{"name": "Jane Doe", "age": 28, "city": "Los Angeles"}
{"name": "Alice Smith", "age": 35, "city": "Chicago"}
JSONL은 여러 개의 JSON 객체를 각 줄에 하나씩 나열하여 표현합니다. 각 줄은 독립적인 JSON 객체입니다.