- ๋คํธ์ํฌ๋ฅผ ์ฌ์ฉํ๋ ๋ฐ์ดํฐ ํต์ ์ byteํํ๋ก ์ ๋ฌ์ ํด์ฃผ๋๋ฐ
JSON
๊ณผXML
์ ๊ณต์ ํฌ๋งท์ด๋ฏ๋ก ๋ฐ์ดํฐ ํต์ ์ด ๊ฐ๋ฅ.- ๋ฐ์ดํฐ๋ฅผ ๋ณด๋ค ์ฝ๊ฒ ์ ์ฅ์ ํ๊ณ ์ ๋ฌํ ๋ชฉ์ ์ผ๋ก ๋ง๋ค์ด์ง
JSON
๊ณผXML
์ ๋ํด ๊ฐ๋จํ๊ฒ
์ ๋ฆฌํด ๋ณผ ์์ .
๋จผ์ JSON
์ ๋ํด ์์๋ณด์.
XML
๊ด๋ จ ๊ธ์ <- ์ฌ๊ธฐ๋ก !!!
JSON
๋ (JavaScript Object Notation)์ ์ฝ์๋กJSON
์ด XML
์ ๋์ฒดํ์ฌjson
๋ ๋ฐ์ดํฐ ํฌ๋งท์ผ ๋ฟ์ด๊ณ ๋จ์ํ ๋ฐ์ดํฐ๋ฅผ ํ์ํ๋ ํํ ๋ฐฉ๋ฒJSON
์ ํธ๋ค๋งํ ์ ์๋๋ก ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ ๊ณต.XML
๋ณด๋ค ์ต์ํ์ ์ฉ๋์ผ๋ก ๋ฐ์ดํฐ ์ ์ก์ด ๊ฐ๋ฅ.XML
๋ณด๋ค ๊ตฌ์กฐ ์ ์์ ์ฉ์ด์ฑ๊ณผ ๊ฐ๋
์ฑ์ด ๋ฐ์ด๋จ.XML
์ ๋นํด ๋ฌธ๋ฒ ์ค๋ฅ์ ์ทจ์ฝ.XML
๋ ์ฌ์ฉ์ฒ๋ง๋ค ์๊ตฌ๋๋ ๊ตฌ์กฐ์ ํํ๋ฅผ ์ ๊ฐ์ท๋์ง ์คํค๋ง๋ฅผ ์ด์ฉํด ๊ฒ์ฆ ๊ฐ๋ฅํ๋ฐJSON
๋ ์ด๋ฐ ๊ธฐ๋ฅ X.JSON
๋ ์ฃผ์ ๋ถ๊ฐ.JSON
๋ฐ์ดํฐ๋ ์ด๋ฆ๊ณผ ๊ฐ์ ์.JSON
๋ฐ์ดํฐ๋ ์ผํ(,)๋ก ๋์ด.{
"squadName": "Super hero squad",
"homeTown": "Metro City",
"formed": 2016,
"secretBase": "Super tower",
"active": true,
"members": [
{
"name": "Molecule Man",
"age": 29,
"secretIdentity": "Dan Jukes",
"powers": [
"Radiation resistance",
"Turning tiny",
"Radiation blast"
]
},
{
"name": "Madame Uppercut",
"age": 39,
"secretIdentity": "Jane Wilson",
"powers": [
"Million tonne punch",
"Damage resistance",
"Superhuman reflexes"
]
},
{
"name": "Eternal Flame",
"age": 1000000,
"secretIdentity": "Unknown",
"powers": [
"Immortality",
"Heat Immunity",
"Inferno",
"Teleportation",
"Interdimensional travel"
]
}
]
}