verdantjuly 2023. 8. 4. 19:51
728x90

JSON (Javascript Object Notation)

 

사람이 읽을 수 있는 텍스트를 사용하여 데이터를 저장하고 전송하는 개방형 표준 파일 형식

JSON 데이터는 키/값 쌍으로 작성됩니다. 

 

JSON 값에 올 수 있는 것

  • Number
  • Boolean
  • String
  • Array
  • Object

예시)

{
   "name":"Jack",
   "age":30,
   "contactNumbers":[
      {
         "type":"Home",
         "number":"123 123-123"
      },
      {
         "type":"Office",
         "number":"321 321-321"
      }
   ],
   "spouse":null,
   "favoriteSports":[
      "Football",
      "Cricket"
   ]
}

 

참고 자료 : https://docs.fileformat.com/ko/web/json/