JSON 포맷

황승현·2023년 12월 18일
0

JSON 포맷

  • JSON(JavaScript Object Notation)은 사람이 읽을 수 있는 텍스트를 사용하여 데이터를 저장하고 전송하는 데이터 공유를 위한 개방형 표준 파일 형식

  • .json 확장자로 저장됨

  • JSON은 JavaScript에서 파생되지만 언어 독립적인 데이터 포맷

JSON 포맷 구조

  • key와 value 쌍으로 이루어진 포맷

  • Key : 문자열(String)

  • Value : 수(Number), 문자열(String), 참/거짓(Boolean), 배열 (Array), 객체 (Object), null

{
  "number_key": 1,
  "string_key": "string_value",
  "boolean_key": true,
  "array_key_1": [1, 2, 3, 4],
  "array_key_2": ["a", "b", "c"],
  "object_key": {
            "sub_key1": "hello, world",
            "sub_key2":  2.0
          },
  "null_key": null
}

참고자료

https://docs.fileformat.com/ko/web/json/

0개의 댓글