XML, JSON, and YAML Overview

By

This article was published in the print magazine Drupal Watchdog, Volume 4 Issue 2, 2014-09, on page 17, by Tag1 Publishing. The magazine was distributed at Drupalcon Amsterdam 2014, 2014-09-29.

Web services, to enable their messages to be machine parsable, rely upon strictly-defined data-structuring languages, most popularly:

  • XML (Extensible Markup Language) uses well-defined hierarchical elements that comprise tags that delimit content and can include attributes containing further information.
  • JSON (JavaScript Object Notation) uses attribute-value pairs and no tags, making it more concise and human-readable than XML — hence its tremendous popularity outside the JavaScript world.
  • YAML (a recursive acronym for YAML Ain't Markup Language) is largely a superset of JSON, and was chosen for Drupal 8 configuration management and project information files.

Copyright © 2014 Michael J. Ross. All rights reserved.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <address> <area> <blockquote> <br> <cite> <code> <dd> <div> <dl> <dt> <em> <fieldset> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <img> <input> <li> <map> <ol> <p> <pre> <span> <strong> <sup> <u> <ul>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
7 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.