“XML vs JSON” Kode Jawaban

JSON vs XML

//JSON Example
{"employees":[
  { "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>
naly moslih

XML vs JSON

These are 2 common formats that we use when exchanging data across the web: 

-- eXtensible Markup Language (XML) has been in use for a very long time and is 
best suited for exchanging document-style data
-- when programs just want to exchange dictionaries, lists, or other internal 
information with each other, they use JavaScript Object Notation (JSON)
Kind Kouprey

xml atau json

POST /download 
Host: user-agents.net 

browser=samsung-browser&version=16-0&browser_type=browser&download=json
Gifted Gibbon

Jawaban yang mirip dengan “XML vs JSON”

Pertanyaan yang mirip dengan “XML vs JSON”

Lebih banyak jawaban terkait untuk “XML vs JSON” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya