Data Exchange includes taking data structured under a source schema and transform it into the target data schema, so that the target data is an accurate representation of the original source data.
JSON
JSON stands for JavaScript Object Notation and is an open-standard format that uses human-readable text to transmit data objects consisting of key-value pairs.
Advantage
* Simple and compact data format* Support hierarchical data structure* Its size is smaller than XML’s* Easy to handle using JavaScript object parsing and web applications* Compact data format to exchange data between applications.* Very good tool support since almost every programming language supports JSON.
Disadvantages
* JSON format(RDF - Resource Description Framework ) structures that go beyond key/value pairs) is very hard to read for humans.* Every single comma, quote, and bracket should be in exactly the correct place.* JSON is not suitable for large data’s.* JSON does not have a < [CDATA []]> feature, so it is not suitable for handling multimedia formats. That is text, images etc.
XML
stands for Extensible Markup Language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.
Advantage
* Support hierarchical data structure* Information coded in XML is easy to read and understand.* Lots of APIs exist to convert data into native data* XML documents can contain any possible data type — from multimedia data (image, sound, video) to active components (Java applets, ActiveX).* Very good tool support since almost every programming language supports XML.
Disadvantages
* There is no optimization of queries.* There is no built-in security model.* Data is not normalized, duplications are not eliminated.* XML is case-sensitive.* Very long and hard to read.* Size is largest due to open and close tag
CSV
A CSV is a comma separated values file, which allows data to be saved in a table structured format.
Advantage
* CSV is human readable and easy to edit manually* Most compact format, half or less size of XM and JSON format* CSV is simple to implement and parse
* CSV is processed by almost all existing applications
Disadvantages
* CSV allows to move most basic data only. Complex configurations cannot be imported and exported this way.* There is no distinction between text and numeric values* No standard way to represent binary data* Poor support of special characters