JSON
[] => 리스트
{} => struct
JSON Example
{"employees":[
{ "firstName":"John", "lastName":"Doe" },
{ "firstName":"Anna", "lastName":"Smith" },
{ "firstName":"Peter", "lastName":"Jones" }
]}
{ "firstName":"John", "lastName":"Doe" },
{ "firstName":"Anna", "lastName":"Smith" },
{ "firstName":"Peter", "lastName":"Jones" }
]}
XML Example
<employees>
<employee>
<firstName>John</firstName> <lastName>Doe</lastName>
</employee>
<employee>
<firstName>Anna</firstName> <lastName>Smith</lastName>
</employee>
<employee>
<firstName>Peter</firstName> <lastName>Jones</lastName>
</employee>
</employees>
<employee>
<firstName>John</firstName> <lastName>Doe</lastName>
</employee>
<employee>
<firstName>Anna</firstName> <lastName>Smith</lastName>
</employee>
<employee>
<firstName>Peter</firstName> <lastName>Jones</lastName>
</employee>
</employees>
출처 https://www.w3schools.com/js/js_json_xml.asp
JSON vs XML
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
728x90
반응형
'Unity' 카테고리의 다른 글
Navigation Mesh_네비게이션 매쉬 (0) | 2021.12.03 |
---|---|
출력 형식이 클래스 라이브러리인 프로젝트는 직접 시작할 수 없습니다 (0) | 2021.11.29 |
Coroutine (코루틴) (0) | 2021.11.29 |
Object pooling_오브젝트 풀링 (0) | 2021.11.26 |
프리팹 안에 여러 프리팹이 있는 구조일 경우 (0) | 2021.11.02 |
댓글