한국   대만   중국   일본 
?????? - ?????????? ????????? ???? ??? ?? ?????

??????

?? ?????????? ????????? ????
(????????? ?? JSON )
?????(???) ??? ??????
.json
??? ?????? ????????
application/json
?? ????????? TEXT
???? ????? ????
?????? ???? ???????
????????? ?????????? STD 90 / RFC   8259 , ECMA-404 , ISO/IEC 21778:2017
???? ???? ? ???
?????

??????????? ??? ??????????? (?? ??????? : JavaScript Object Notation ) ?? ????????? ?????? (?? ??????? : JSON ? ‎/ ? d? e? s ?n /‎ ?? ‎/ ? d? e? ? s ? n /‎ )? ?? ????????? ??? ????? ??? ???? ?????? ??????? ??? ?? ??????? ?? ???? ????? ??? ????? ????. ?????? ?? ???? ????????????? ??????????? ?? ????????? ??????? ???????? ???? ? ????????? ?????? ???? ???????. ?? ???? ?????? ????? ?? ?? ??????????? ????? ?????? ????? ?? ???? ??? ? ???????? ??????? ???? ?? ????? ????? ?????.

???? ?????? ?? ????? ???? ?????? ???????? ???? ? ?? RFC4627 ??? ???? ???????. ??? ?????? ???????? ???? ??? application/json ? ????? ??? ?????????? ?????? ‎ .json ???.

?????? ????? ???? ???????? ? ?????? ??????? ??????? ?? ???? ??????? ??????? ?????? ????? ??????. ??????? ???????? ?? ???? ?????? ??????? ??? ?? ?????? ? ?? ??????? ??? ???????? ???????? ???? ????????? ???. [?]

??????? ???????? ????? ???? ? ????? [ ?????? ]

??????? ??????? ????? ?????? ????????? ??: [?]

  • ????? (???? ?? ?????)
  • ???? (??????????? ?? ?? ≪"≫ ????? ???...)
  • ????? ???? (true ?? false? ???? ?? ??????)
  • ????? (??????? ????? ?????? ?? ???????? ??? ??? ?? ?????? (,) ? ????? ??? ?? ≪[≫ ? ≪]≫)
  • ??? (????????? ?? ??????? ???? ??????? ??? ??? ?? ?????? (,) ? ????? ??? ?? ≪{≫ ? ≪}≫? ???? ???????? ?? ?? ???? ????)
  • ??? (?? ??????? : null )

?????? ??? ?? ??? ?? ?????? ??? ?? ?? ??? ?? ??? ??????. ?? ??? ??? ??? ??????? ???? ???? ??? ? ??? ???????? ? ??? ??????? ???? ???? ??? ?? ??? ???? ?????? ????? ??? ? ?? ????? (?? ?????) ???? ?????? ????????? ???? ??? ???: [?]

{

    "firstName"
:
 "John"
,

    "lastName"
:
 "Smith"
,

    "age"
:
 25
,

    "address"
:
 {

        "streetAddress"
:
 "21 2nd Street"
,

        "city"
:
 "New York"
,

        "state"
:
 "NY"
,

        "postalCode"
:
 "10021"

    },

    "phoneNumber"
:
 [

        {

            "type"
:
 "home"
,

            "number"
:
 "212 555-1234"

        },

        {

            "type"
:
 "fax"
,

            "number"
:
 "646 555-4567"

        }

    ]

}

????? ??? ???????????? ??????? ?????? ?? ?????? ?????? ?? ???????? ????? ???? ?????:

<person>

  <firstName>
John
</firstName>

  <lastName>
Smith
</lastName>

  <age>
25
</age>

  <address>

    <streetAddress>
21
 2nd
 Street
</streetAddress>

    <city>
New
 York
</city>

    <state>
NY
</state>

    <postalCode>
10021
</postalCode>

  </address>

  <phoneNumbers>

    <phoneNumber
 type=
"home"
>
212
 555-1234
</phoneNumber>

    <phoneNumber
 type=
"fax"
>
646
 555-4567
</phoneNumber>

  </phoneNumbers>

</person>

<person
 firstName=
"John"
 lastName=
"Smith"
 age=
"25"
>

  <address
 streetAddress=
"21 2nd Street"
 city=
"New York"
 state=
"NY"
 postalCode=
"10021"
/>

  <phoneNumbers>

     <phoneNumber
 type=
"home"
 number=
"212 555-1234"
/>

     <phoneNumber
 type=
"fax"
  number=
"646 555-4567"
/>

  </phoneNumbers>

</person>

????? [ ?????? ]