CSV vs. XML vs. JSON vs. YAML

Comma Separated Values ( .CSV )

index,first_name,last_name,date_of_birth,city,state,zip,native 42,"John","Smith",19700101,"Palo Alto","CA",94020,"true"

Extensible Markup Language ( .XML )

<?xml version="1.0"?> <people> <person> <index>42</index> <first_name>John</first_name> <last_name>Smith</last_name> <date_of_birth>19700101</date_of_birth> <city>Palo Alto</city> <state>CA</state> <zip>94020</zip> <native>true</native> </person> </people>

JavaScript Object Notation ( .JSON )

{ "people": [ { "index": 42, "first_name": "John", "last_name": "Smith", "date_of_birth": 19700101, "city": "Palo Alto", "state": "CA", "zip": 94020, "native": true } ] }

Yet Another Markup Language ( .YAML / .YML )

people: - index: 42 first_name: John last_name: Smith date_of_birth: 19700101 city: Palo Alto state: CA zip: 94020 native: true