From the course: JSON Essential Training

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Convert between JSON and other data formats

Convert between JSON and other data formats - JavaScript Tutorial

From the course: JSON Essential Training

Convert between JSON and other data formats

- [Instructor] JSON is not the only data format in wide use, and sometimes, when a program requests data, it's only available in a format other than JSON. Fortunately, converting is pretty straightforward in many situations. There are many data formats available, but aside from JSON, the most common include XML, YAML and CSV. XML stands for extensible markup language. XML is related to HTML, which is the markup language used to structure webpages. XML can be customized in ways that HTML can't and it's been widely used for data exchange since before JSON existed. YAML stands for yet another markup language. You got to love it when the name of a language to structure data can make you laugh. YAML was created with the goal of making structured data easy to write and it has fewer rules than other data structures like XML. CSV stands for comma separated values. It's literally characters separated by commas. CSV is often used…

Contents