Class Notes learningYAML
Class Notes learningYAML
David Shepard
Title of the Presentation Goes Here [DISTRIBUTION STATEMENT Please copy and paste the appropriate distribution statement into
[Distribution Statement A] Approved for public
© 2020 Carnegie Mellon University this space.]
The Government's rights to use, modify, reproduce, release, perform, display, or disclose these technical data are restricted by paragraph (b)(2) of the Rights in Technical Data—Noncommercial Items clause contained in the above identified contract. Any reproduction of technical data or portions
thereof marked with this legend must also reproduce the markings.
This material is distributed by the Software Engineering Institute (SEI) only to course attendees for their own individual study.
Except for any U.S. government purposes described herein, this material SHALL NOT be reproduced or used in any other manner without requesting formal permission from the Software Engineering Institute at [email protected].
Although the rights granted by contract do not require course attendance to use this material for U.S. Government purposes, the SEI recommends attendance to ensure proper understanding.
DM21-0158
“an extremely simple data-interchange format... for humans to read and write and for machines to parse and
generate.”
JS Objects
JS Arrays
The legacy of JavaScript in
JSON is real, but JS has
nothing to do with JSON
today.
Learning YAML [Distribution Statement A] Approved for public
© 2020 Carnegie Mellon University
release and unlimited distribution.
7
What is YAML really?
YAML is mostly a
more human-
readable variant of
JSON, but there are
some differences /
enhancements
JS Arrays
Text with
“escapes”
will upset
your text
editor. It’s
normal.
Anchors
References
Extensions
It works like
a built-in More bizarre
macro macro-expansion
expansion.