There are many formats for data exchange , The simplest is TXT File format , perhaps CSV Format , Or richer XML Format . Each format has its own advantages and disadvantages , such as TXT Files fit text 、 Variable length needs ;CSV The format is suitable for data record files , Such as EXCEL Such data ;XML The format is suitable for a variety of objects , For example, there is a video inside 、 Audio 、 And there's super connectivity and so on . and JSON Suitable for structured data , Than XML It's easier , But again CSV It's only suitable for recording data. It's stronger . because CSV It's difficult to represent data like dictionaries , and JSON It's very convenient . but JSON Than XML Without the label , So in terms of space and efficiency XML fast , Than XML Small size .
JSON Constructed in two structures ：
（1）“ name / value ” For the collection of （A collection of name/value pairs）. In different languages , It is understood as the object （o