CINXE.COM
YAML - Wikipedia
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>YAML - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"ea3289a9-f30f-4dcd-b4d5-7fa92464e5f6","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"YAML","wgTitle":"YAML","wgCurRevisionId":1277222107,"wgRevisionId":1277222107,"wgArticleId":326530,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Pages using the Phonos extension","Webarchive template wayback links","Articles with short description","Short description matches Wikidata","Pages including recorded pronunciations","All articles lacking reliable references","Articles lacking reliable references from January 2023","All articles with minor POV problems","Articles with minor POV problems from October 2023","Computer-related introductions in 2001","Data serialization formats"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en", "wgPageContentModel":"wikitext","wgRelevantPageName":"YAML","wgRelevantArticleId":326530,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":40000,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q281876","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform", "platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","ext.cite.styles":"ready","ext.phonos.styles":"ready","ext.phonos.icons":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","ext.cite.ux-enhancements","ext.phonos.init","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP", "ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.cite.styles%7Cext.phonos.icons%2Cstyles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.17"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="YAML - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/YAML"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=YAML&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/YAML"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-YAML rootpage-YAML skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" title="Main menu" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li><li id="n-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages"><span>Special pages</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=YAML" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=YAML" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=YAML" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=YAML" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-History_and_name" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#History_and_name"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>History and name</span> </div> </a> <ul id="toc-History_and_name-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Versions" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Versions"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Versions</span> </div> </a> <ul id="toc-Versions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Design" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Design"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Design</span> </div> </a> <button aria-controls="toc-Design-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Design subsection</span> </button> <ul id="toc-Design-sublist" class="vector-toc-list"> <li id="toc-Syntax" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Syntax"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1</span> <span>Syntax</span> </div> </a> <ul id="toc-Syntax-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Basic_components" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Basic_components"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2</span> <span>Basic components</span> </div> </a> <ul id="toc-Basic_components-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Advanced_components" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Advanced_components"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.3</span> <span>Advanced components</span> </div> </a> <ul id="toc-Advanced_components-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Example" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Example"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.4</span> <span>Example</span> </div> </a> <ul id="toc-Example-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Features" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Features"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Features</span> </div> </a> <button aria-controls="toc-Features-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Features subsection</span> </button> <ul id="toc-Features-sublist" class="vector-toc-list"> <li id="toc-Indented_delimiting" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Indented_delimiting"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Indented delimiting</span> </div> </a> <ul id="toc-Indented_delimiting-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Non-hierarchical_data_models" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Non-hierarchical_data_models"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>Non-hierarchical data models</span> </div> </a> <ul id="toc-Non-hierarchical_data_models-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Practical_considerations" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Practical_considerations"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.3</span> <span>Practical considerations</span> </div> </a> <ul id="toc-Practical_considerations-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Security" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Security"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.4</span> <span>Security</span> </div> </a> <ul id="toc-Security-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Data_processing_and_representation" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Data_processing_and_representation"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.5</span> <span>Data processing and representation</span> </div> </a> <ul id="toc-Data_processing_and_representation-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Comparison_with_other_serialization_formats" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Comparison_with_other_serialization_formats"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Comparison with other serialization formats</span> </div> </a> <button aria-controls="toc-Comparison_with_other_serialization_formats-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Comparison with other serialization formats subsection</span> </button> <ul id="toc-Comparison_with_other_serialization_formats-sublist" class="vector-toc-list"> <li id="toc-Comparison_with_JSON" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Comparison_with_JSON"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.1</span> <span>Comparison with JSON</span> </div> </a> <ul id="toc-Comparison_with_JSON-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Comparison_with_TOML" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Comparison_with_TOML"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.2</span> <span>Comparison with TOML</span> </div> </a> <ul id="toc-Comparison_with_TOML-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Comparison_with_XML" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Comparison_with_XML"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.3</span> <span>Comparison with XML</span> </div> </a> <ul id="toc-Comparison_with_XML-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Software_(emitters_and_parsers)" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Software_(emitters_and_parsers)"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Software (emitters and parsers)</span> </div> </a> <ul id="toc-Software_(emitters_and_parsers)-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Criticism" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Criticism"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Criticism</span> </div> </a> <ul id="toc-Criticism-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>External links</span> </div> </a> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" title="Table of Contents" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">YAML</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 23 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-23" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">23 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/YAML" title="YAML – Catalan" lang="ca" hreflang="ca" data-title="YAML" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/YAML" title="YAML – Czech" lang="cs" hreflang="cs" data-title="YAML" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/YAML" title="YAML – German" lang="de" hreflang="de" data-title="YAML" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/YAML" title="YAML – Spanish" lang="es" hreflang="es" data-title="YAML" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/YAML" title="YAML – Persian" lang="fa" hreflang="fa" data-title="YAML" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/YAML" title="YAML – French" lang="fr" hreflang="fr" data-title="YAML" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/YAML" title="YAML – Korean" lang="ko" hreflang="ko" data-title="YAML" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/YAML" title="YAML – Indonesian" lang="id" hreflang="id" data-title="YAML" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indonesian" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/YAML" title="YAML – Italian" lang="it" hreflang="it" data-title="YAML" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/YAML" title="YAML – Hebrew" lang="he" hreflang="he" data-title="YAML" data-language-autonym="עברית" data-language-local-name="Hebrew" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/YAML" title="YAML – Japanese" lang="ja" hreflang="ja" data-title="YAML" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/YAML" title="YAML – Norwegian Bokmål" lang="nb" hreflang="nb" data-title="YAML" data-language-autonym="Norsk bokmål" data-language-local-name="Norwegian Bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/YAML" title="YAML – Polish" lang="pl" hreflang="pl" data-title="YAML" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/YAML" title="YAML – Portuguese" lang="pt" hreflang="pt" data-title="YAML" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/YAML" title="YAML – Russian" lang="ru" hreflang="ru" data-title="YAML" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikipedia.org/wiki/YAML" title="YAML – Albanian" lang="sq" hreflang="sq" data-title="YAML" data-language-autonym="Shqip" data-language-local-name="Albanian" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/YAML" title="YAML – Simple English" lang="en-simple" hreflang="en-simple" data-title="YAML" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/YAML" title="YAML – Slovak" lang="sk" hreflang="sk" data-title="YAML" data-language-autonym="Slovenčina" data-language-local-name="Slovak" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/YAML" title="YAML – Finnish" lang="fi" hreflang="fi" data-title="YAML" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/YAML" title="YAML – Swedish" lang="sv" hreflang="sv" data-title="YAML" data-language-autonym="Svenska" data-language-local-name="Swedish" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/YAML" title="YAML – Turkish" lang="tr" hreflang="tr" data-title="YAML" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/YAML" title="YAML – Ukrainian" lang="uk" hreflang="uk" data-title="YAML" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/YAML" title="YAML – Chinese" lang="zh" hreflang="zh" data-title="YAML" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q281876#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/YAML" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:YAML" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/YAML"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=YAML&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=YAML&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/YAML"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=YAML&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=YAML&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/YAML" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/YAML" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=YAML&oldid=1277222107" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=YAML&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&page=YAML&id=1277222107&wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FYAML"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FYAML"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=YAML&action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=YAML&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q281876" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Human-readable data serialization format</div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">For the CSS framework, see <a href="/wiki/YAML_(framework)" title="YAML (framework)">YAML (framework)</a>.</div> <style data-mw-deduplicate="TemplateStyles:r1257001546">.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme) div:not(.notheme){background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table tr{display:table-row!important}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}</style><table class="infobox"><caption class="infobox-title" style="padding-bottom: 0.15em;">YAML</caption><tbody><tr><td colspan="2" class="infobox-image"><span typeof="mw:File"><a href="/wiki/File:Official_YAML_Logo.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Official_YAML_Logo.svg/64px-Official_YAML_Logo.svg.png" decoding="async" width="64" height="59" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Official_YAML_Logo.svg/96px-Official_YAML_Logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Official_YAML_Logo.svg/128px-Official_YAML_Logo.svg.png 2x" data-file-width="512" data-file-height="471" /></a></span></td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;"><a href="/wiki/Filename_extension" title="Filename extension">Filename extensions</a></th><td class="infobox-data" style="line-height: 1.35;"><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">.yaml</code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">.yml</code></td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;"><a href="/wiki/Media_type" title="Media type">Internet media type</a></th><td class="infobox-data" style="line-height: 1.35;"><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">application/yaml</code><sup id="cite_ref-rfc9512_1-0" class="reference"><a href="#cite_note-rfc9512-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;"><a href="/wiki/Uniform_Type_Identifier" title="Uniform Type Identifier">Uniform Type Identifier (UTI)</a></th><td class="infobox-data" style="line-height: 1.35;">public.yaml<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup></td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;">Initial release</th><td class="infobox-data" style="line-height: 1.35;">11 May 2001<span class="noprint">; 23 years ago</span><span style="display:none"> (<span class="bday dtstart published updated">2001-05-11</span>)</span></td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;"><a href="/wiki/Software_release_life_cycle" title="Software release life cycle">Latest release</a></th><td class="infobox-data" style="line-height: 1.35;"><div style="display: inline-block; line-height: 1.2em; padding: .1em 0;">1.2 (Revision 1.2.2)<br />1 October 2021<span class="noprint">; 3 years ago</span><span style="display:none"> (<span class="bday dtstart published updated">2021-10-01</span>)</span> </div></td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;">Type of format</th><td class="infobox-data" style="line-height: 1.35;">Data interchange</td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;"><span class="nowrap"><a href="/wiki/Open_file_format" title="Open file format">Open format</a>?</span></th><td class="infobox-data" style="line-height: 1.35;">Yes</td></tr><tr><th scope="row" class="infobox-label" style="line-height: 1.2; padding-right: 0.65em;">Website</th><td class="infobox-data" style="line-height: 1.35;"><span class="url"><a rel="nofollow" class="external text" href="https://yaml.org">yaml<wbr />.org</a></span></td></tr></tbody></table> <p><b>YAML</b> (<span class="rt-commentedText nowrap"><span class="IPA nopopups noexcerpt" lang="en-fonipa"><a href="/wiki/Help:IPA/English" title="Help:IPA/English">/<span style="border-bottom:1px dotted"><span title="/ˈ/: primary stress follows">ˈ</span><span title="/j/: 'y' in 'yes'">j</span><span title="/æ/: 'a' in 'bad'">æ</span><span title="'m' in 'my'">m</span><span title="/ə/: 'a' in 'about'">ə</span><span title="'l' in 'lie'">l</span></span>/</a></span> <span class="ext-phonos"><span data-nosnippet="" id="ooui-php-1" class="noexcerpt ext-phonos-PhonosButton ext-phonos-PhonosButton-emptylabel oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-buttonWidget" data-ooui="{"_":"mw.Phonos.PhonosButton","href":"\/\/upload.wikimedia.org\/wikipedia\/commons\/transcoded\/7\/7f\/En-us-YAML.oga\/En-us-YAML.oga.mp3","rel":["nofollow"],"framed":false,"icon":"volumeUp","data":{"ipa":"","text":"","lang":"en","wikibase":"","file":"En-us-YAML.oga"},"classes":["noexcerpt","ext-phonos-PhonosButton","ext-phonos-PhonosButton-emptylabel"]}"><a role="button" tabindex="0" href="//upload.wikimedia.org/wikipedia/commons/transcoded/7/7f/En-us-YAML.oga/En-us-YAML.oga.mp3" rel="nofollow" aria-label="Play audio" title="Play audio" class="oo-ui-buttonElement-button"><span class="oo-ui-iconElement-icon oo-ui-icon-volumeUp"></span><span class="oo-ui-labelElement-label"></span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator"></span></a></span><sup class="ext-phonos-attribution noexcerpt navigation-not-searchable"><a href="/wiki/File:En-us-YAML.oga" title="File:En-us-YAML.oga">ⓘ</a></sup></span></span>; see <a href="#History_and_name">§ History and name</a>) is a <a href="/wiki/Human-readable" class="mw-redirect" title="Human-readable">human-readable</a> <a href="/wiki/Data_serialization_language" class="mw-redirect" title="Data serialization language">data serialization language</a>. It is commonly used for <a href="/wiki/Configuration_file" title="Configuration file">configuration files</a> and in applications where data is being stored or transmitted. YAML targets many of the same communications applications as <a href="/wiki/Extensible_Markup_Language" class="mw-redirect" title="Extensible Markup Language">Extensible Markup Language</a> (XML) but has a minimal syntax that intentionally differs from <a href="/wiki/Standard_Generalized_Markup_Language" title="Standard Generalized Markup Language">Standard Generalized Markup Language</a> (SGML).<sup id="cite_ref-1.0_3-0" class="reference"><a href="#cite_note-1.0-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> It uses <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>-style indentation to indicate nesting<sup id="cite_ref-1.0_3-1" class="reference"><a href="#cite_note-1.0-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> and does not require quotes around most string values (it also supports <a href="/wiki/JSON" title="JSON">JSON</a> style <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">[...]</code> and <code>{...}</code> mixed in the same file).<sup id="cite_ref-YAML_Version_1.2_4-0" class="reference"><a href="#cite_note-YAML_Version_1.2-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> </p><p>Custom data types are allowed, but YAML natively encodes <a href="/wiki/Scalar_(computing)" class="mw-redirect" title="Scalar (computing)">scalars</a> (such as <a href="/wiki/String_(computer_science)" title="String (computer science)">strings</a>, <a href="/wiki/Integer_(computer_science)" title="Integer (computer science)">integers</a>, and <a href="/wiki/Floating_point" class="mw-redirect" title="Floating point">floats</a>), <a href="/wiki/List_(computing)" class="mw-redirect" title="List (computing)">lists</a>, and <a href="/wiki/Associative_arrays" class="mw-redirect" title="Associative arrays">associative arrays</a> (also known as maps, dictionaries or hashes). These data types are based on the <a href="/wiki/Perl" title="Perl">Perl</a> programming language, though all commonly used high-level programming languages share very similar concepts.<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup> The colon-centered syntax, used for expressing <a href="/wiki/Attribute%E2%80%93value_pair" class="mw-redirect" title="Attribute–value pair">key-value pairs</a>, is inspired by <a href="/wiki/Electronic_mail" class="mw-redirect" title="Electronic mail">electronic mail</a> headers as defined in <style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc822">822</a>, and the <a href="/wiki/Delimiter" title="Delimiter">document separator</a> <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">---</code> is borrowed from <a href="/wiki/MIME" title="MIME">MIME</a> (<link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><a href="/wiki/RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc2046">2046</a>). <a href="/wiki/Escape_sequences" class="mw-redirect" title="Escape sequences">Escape sequences</a> are reused from <a href="/wiki/C_(programming_language)" title="C (programming language)">C</a>, and whitespace wrapping for multi-line strings is inspired by <a href="/wiki/HTML" title="HTML">HTML</a>. Lists and hashes can contain nested lists and hashes, forming a <a href="/wiki/Tree_structure" title="Tree structure">tree structure</a>; arbitrary <a href="/wiki/Graph_(abstract_data_type)" title="Graph (abstract data type)">graphs</a> can be represented using YAML aliases (similar to XML in <a href="/wiki/SOAP" title="SOAP">SOAP</a>).<sup id="cite_ref-1.0_3-2" class="reference"><a href="#cite_note-1.0-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> YAML is intended to be read and written in streams, a feature inspired by <a href="/wiki/Simple_API_for_XML" title="Simple API for XML">SAX</a>.<sup id="cite_ref-1.0_3-3" class="reference"><a href="#cite_note-1.0-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> </p><p>Support for reading and writing YAML is available for many programming languages.<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> Some source-code editors such as <a href="/wiki/Vim_(text_editor)" title="Vim (text editor)">Vim</a>,<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> <a href="/wiki/Emacs" title="Emacs">Emacs</a>,<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup> and various <a href="/wiki/Integrated_development_environment" title="Integrated development environment">integrated development environments</a><sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup> have features that make editing YAML easier, such as folding up nested structures or automatically highlighting syntax errors. </p><p>The official recommended <a href="/wiki/Filename_extension" title="Filename extension">filename extension</a> for YAML files has been <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">.yaml</code> since 2006.<sup id="cite_ref-14" class="reference"><a href="#cite_note-14"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup> In 2024, the <a href="/wiki/MIME_type" class="mw-redirect" title="MIME type">MIME type</a> <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">application/yaml</code> has been finalized.<sup id="cite_ref-rfc9512_1-1" class="reference"><a href="#cite_note-rfc9512-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="History_and_name">History and name</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=1" title="Edit section: History and name"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>YAML (<span class="rt-commentedText nowrap"><span class="IPA nopopups noexcerpt" lang="en-fonipa"><a href="/wiki/Help:IPA/English" title="Help:IPA/English">/<span style="border-bottom:1px dotted"><span title="/ˈ/: primary stress follows">ˈ</span><span title="/j/: 'y' in 'yes'">j</span><span title="/æ/: 'a' in 'bad'">æ</span><span title="'m' in 'my'">m</span><span title="/əl/: 'le' in 'bottle'">əl</span></span>/</a></span></span>, rhymes with <i>camel</i><sup id="cite_ref-YAML_Version_1.2_4-1" class="reference"><a href="#cite_note-YAML_Version_1.2-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>) was first proposed by Clark Evans in 2001,<sup id="cite_ref-15" class="reference"><a href="#cite_note-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup> who designed it together with Ingy döt Net<sup id="cite_ref-yaml_org_about_16-0" class="reference"><a href="#cite_note-yaml_org_about-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> and Oren Ben-Kiki.<sup id="cite_ref-yaml_org_about_16-1" class="reference"><a href="#cite_note-yaml_org_about-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> Originally YAML was said to mean <i>Yet Another Markup Language</i>,<sup id="cite_ref-YAML_spec_2001_08_01_17-0" class="reference"><a href="#cite_note-YAML_spec_2001_08_01-17"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup> because it was released in an era that saw a proliferation of markup languages for presentation and connectivity (HTML, XML, SGML, etc.). Its initial name was intended as a <a href="/wiki/Tongue-in-cheek" title="Tongue-in-cheek">tongue-in-cheek</a> reference<sup id="cite_ref-YAML_name_orig_2011_08_06_18-0" class="reference"><a href="#cite_note-YAML_name_orig_2011_08_06-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup> to the technology landscape, referencing its purpose as a <a href="/wiki/Markup_language" title="Markup language">markup language</a> with the <a href="/wiki/Yet_another" title="Yet another">yet another</a> construct, but it was then repurposed as <i>YAML Ain't Markup Language</i>, a <a href="/wiki/Recursive_acronym" title="Recursive acronym">recursive acronym</a>, to distinguish its purpose as data-oriented, rather than document markup. </p> <div class="mw-heading mw-heading2"><h2 id="Versions">Versions</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=2" title="Edit section: Versions"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable"> <tbody><tr> <th>Version</th> <th>Release date </th></tr> <tr> <td>YAML 1.0</td> <td>29 January 2004 </td></tr> <tr> <td>YAML 1.1</td> <td>18 January 2005 </td></tr> <tr> <td>YAML 1.2.0</td> <td>21 July 2009 </td></tr> <tr> <td>YAML 1.2.1</td> <td>1 October 2009 </td></tr> <tr> <td>YAML 1.2.2</td> <td>1 October 2021 </td></tr> </tbody></table> <div class="mw-heading mw-heading2"><h2 id="Design">Design</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=3" title="Edit section: Design"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Syntax">Syntax</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=4" title="Edit section: Syntax"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A cheat sheet and full specification are available at the official site.<sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup> The following is a synopsis of the basic elements. </p><p>YAML accepts the entire Unicode character set, except for some <a href="/wiki/Control_character" title="Control character">control characters</a>, and may be encoded in any one of <a href="/wiki/UTF-8" title="UTF-8">UTF-8</a>, <a href="/wiki/UTF-16" title="UTF-16">UTF-16</a> or <a href="/wiki/UTF-32" title="UTF-32">UTF-32</a>. (Though UTF-32 is not mandatory, it is required for a parser to have <a href="/wiki/JSON" title="JSON">JSON</a> compatibility.)<sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup> </p> <ul><li><a href="/wiki/Whitespace_(computer_science)" class="mw-redirect" title="Whitespace (computer science)">Whitespace</a> <a href="/wiki/Indent_style" class="mw-redirect" title="Indent style">indentation</a> is used for denoting structure; however, <a href="/wiki/Tab_character" class="mw-redirect" title="Tab character">tab characters</a> are not allowed as part of that indentation.<sup id="cite_ref-YAML_v1.2.2_21-0" class="reference"><a href="#cite_note-YAML_v1.2.2-21"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup></li> <li><a href="/wiki/Comment_(computer_programming)" title="Comment (computer programming)">Comments</a> begin with the <a href="/wiki/Number_sign" title="Number sign">number sign</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">#</code>), can start anywhere on a line and continue until the end of the line. Comments must be separated from other tokens by whitespace characters.<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup> If <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">#</code> characters appear inside of a string, then they are number sign (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">#</code>) literals.</li> <li>List members are denoted by a leading <a href="/wiki/Hyphen-minus" title="Hyphen-minus">hyphen</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">-</code>) with one member per line. <ul><li>A list can also be specified by enclosing text in <a href="/wiki/Square_brackets" class="mw-redirect" title="Square brackets">square brackets</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">[...]</code>) with each entry separated by a <a href="/wiki/Comma_(punctuation)" class="mw-redirect" title="Comma (punctuation)">comma</a>.</li></ul></li> <li>An <a href="/wiki/Associative_array" title="Associative array">associative array</a> entry is represented using <a href="/wiki/Colon_(punctuation)" title="Colon (punctuation)">colon</a> <a href="/wiki/Space_(punctuation)" title="Space (punctuation)">space</a> in the form <i>key: value</i> with one entry per line. YAML requires the colon be followed by a space so that url-style strings like <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">http://www.wikipedia.org</code> can be represented without needing to be enclosed in quotes. <ul><li>A <a href="/wiki/Question_mark" title="Question mark">question mark</a> can be used in front of a key, in the form "?key: value" to allow the key to contain leading dashes, square brackets, etc., without quotes.</li> <li>An associative array can also be specified by text enclosed in <a href="/wiki/Curly_braces" class="mw-redirect" title="Curly braces">curly braces</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">{...}</code>), with keys separated from values by colon and the entries separated by commas (spaces are not required to retain compatibility with JSON).</li></ul></li> <li><a href="/wiki/String_(computer_science)" title="String (computer science)">Strings</a> (one type of scalar in YAML) are ordinarily unquoted, but may be enclosed in <a href="/wiki/Double_quote" class="mw-redirect" title="Double quote">double-quotes</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">"</code>), or <a href="/wiki/Single_quote" class="mw-redirect" title="Single quote">single-quotes</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">'</code>). <ul><li>Within double-quotes, special characters may be represented with <a href="/wiki/C_(programming_language)" title="C (programming language)">C-style</a> escape sequences starting with a <a href="/wiki/Backslash" title="Backslash">backslash</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">\</code>). According to the documentation the only octal escape supported is <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">\0</code>.</li> <li>Within single quotes the only supported escape sequence is a doubled single quote (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">''</code>) denoting the single quote itself as in <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">'don''t'</code>.</li></ul></li> <li>Block scalars are delimited with <a href="/wiki/Indent_style" class="mw-redirect" title="Indent style">indentation</a> with optional modifiers to preserve (<code>|</code>) or fold (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">></code>) newlines.</li> <li>Multiple documents within a single stream are separated by three <a href="/wiki/Hyphens" class="mw-redirect" title="Hyphens">hyphens</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">---</code>). <ul><li>Three <a href="/wiki/Full_stop" title="Full stop">periods</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">...</code>) optionally end a document within a stream.</li></ul></li> <li>Repeated nodes are initially denoted by an <a href="/wiki/Ampersand" title="Ampersand">ampersand</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&</code>) and thereafter referenced with an <a href="/wiki/Asterisk" title="Asterisk">asterisk</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">*</code>).</li> <li>Nodes may be labeled with a type or tag using a double <a href="/wiki/Exclamation_mark" title="Exclamation mark">exclamation mark</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">!!</code>) followed by a string, which can be expanded into a URI.</li> <li>YAML documents in a stream may be preceded by 'directives' composed of a <a href="/wiki/Percent_sign" title="Percent sign">percent sign</a> (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">%</code>) followed by a name and space-delimited parameters. Two directives are defined in YAML 1.1: <ul><li>The %YAML directive is used for identifying the version of YAML in a given document.</li> <li>The %TAG directive is used as a shortcut for URI prefixes. These shortcuts may then be used in node type tags.</li></ul></li></ul> <div class="mw-heading mw-heading3"><h3 id="Basic_components">Basic components</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=5" title="Edit section: Basic components"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Conventional block format uses a hyphen+space to begin a new item in list. </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nn">---</span><span class="w"> </span><span class="c1"># Favorite movies</span> <span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Casablanca</span> <span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">North by Northwest</span> <span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">The Man Who Wasn't There</span> </pre></div> <p>Optional inline format is delimited by comma+space and enclosed in brackets (similar to <a href="/wiki/JavaScript_Object_Notation" class="mw-redirect" title="JavaScript Object Notation">JSON</a>).<sup id="cite_ref-23" class="reference"><a href="#cite_note-23"><span class="cite-bracket">[</span>23<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nn">---</span><span class="w"> </span><span class="c1"># Shopping list</span> <span class="p p-Indicator">[</span><span class="nv">milk</span><span class="p p-Indicator">,</span><span class="w"> </span><span class="nv">pumpkin pie</span><span class="p p-Indicator">,</span><span class="w"> </span><span class="nv">eggs</span><span class="p p-Indicator">,</span><span class="w"> </span><span class="nv">juice</span><span class="p p-Indicator">]</span> </pre></div> <p>Keys are separated from values by a colon+space. Indented blocks, common in YAML data files, use indentation and new lines to separate the key/value pairs. Inline Blocks, common in YAML data streams, use comma+space to separate the key/value pairs between braces. </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nn">---</span><span class="w"> </span><span class="c1"># Indented Block</span> <span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">John Smith</span> <span class="w"> </span><span class="nt">age</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">33</span> <span class="nn">---</span><span class="w"> </span><span class="c1"># Inline Block</span> <span class="p p-Indicator">{</span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="nv">John Smith</span><span class="p p-Indicator">,</span><span class="nt"> age</span><span class="p">:</span><span class="w"> </span><span class="nv">33</span><span class="p p-Indicator">}</span> </pre></div> <p>Strings do not require quotation marks. There are two ways to write multi-line strings, one preserving newlines (using the <code>|</code> character) and one that folds the newlines (using the <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">></code> character), both followed by a newline character. </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">data</span><span class="p">:</span><span class="w"> </span><span class="p p-Indicator">|</span> <span class="w"> </span><span class="no">There once was a tall man from Ealing</span> <span class="w"> </span><span class="no">Who got on a bus to Darjeeling</span> <span class="w"> </span><span class="no">It said on the door</span> <span class="w"> </span><span class="no">"Please don't sit on the floor"</span> <span class="w"> </span><span class="no">So he carefully sat on the ceiling</span> </pre></div> <p>By default, the leading indentation (of the first line) and trailing whitespace are stripped, though other behavior can be explicitly specified. </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">data</span><span class="p">:</span><span class="w"> </span><span class="p p-Indicator">></span> <span class="w"> </span><span class="no">Wrapped text</span> <span class="w"> </span><span class="no">will be folded</span> <span class="w"> </span><span class="no">into a single</span> <span class="w"> </span><span class="no">paragraph</span> <span class="w"> </span><span class="no">Blank lines denote</span> <span class="w"> </span><span class="no">paragraph breaks</span> </pre></div> <p>Folded text converts newlines to spaces and removes leading whitespace. </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nn">---</span><span class="w"> </span><span class="c1"># The Smiths</span> <span class="p p-Indicator">-</span><span class="w"> </span><span class="p p-Indicator">{</span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="nv">John Smith</span><span class="p p-Indicator">,</span><span class="nt"> age</span><span class="p">:</span><span class="w"> </span><span class="nv">33</span><span class="p p-Indicator">}</span> <span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Mary Smith</span> <span class="w"> </span><span class="nt">age</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">27</span> <span class="p p-Indicator">-</span><span class="w"> </span><span class="p p-Indicator">[</span><span class="nv">name</span><span class="p p-Indicator">,</span><span class="w"> </span><span class="nv">age</span><span class="p p-Indicator">]:</span><span class="w"> </span><span class="p p-Indicator">[</span><span class="nv">Rae Smith</span><span class="p p-Indicator">,</span><span class="w"> </span><span class="nv">4</span><span class="p p-Indicator">]</span><span class="w"> </span><span class="c1"># sequences as keys are supported</span> <span class="nn">---</span><span class="w"> </span><span class="c1"># People, by gender</span> <span class="nt">men</span><span class="p">:</span><span class="w"> </span><span class="p p-Indicator">[</span><span class="nv">John Smith</span><span class="p p-Indicator">,</span><span class="w"> </span><span class="nv">Bill Jones</span><span class="p p-Indicator">]</span> <span class="nt">women</span><span class="p">:</span> <span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Mary Smith</span> <span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Susan Williams</span> </pre></div> <p>Objects and lists are important components in yaml and can be mixed. The first example is a list of key-value objects, all people from the Smith family. The second lists them by gender; it is a key-value object containing two lists. </p> <div class="mw-heading mw-heading3"><h3 id="Advanced_components">Advanced components</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=6" title="Edit section: Advanced components"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Two features that distinguish YAML from the capabilities of other data-serialization languages are structures<sup id="cite_ref-yaml_structures_24-0" class="reference"><a href="#cite_note-yaml_structures-24"><span class="cite-bracket">[</span>24<span class="cite-bracket">]</span></a></sup> and data typing. </p><p>YAML structures enable storage of multiple documents within a single file, usage of references for repeated nodes, and usage of arbitrary nodes as keys.<sup id="cite_ref-yaml_structures_24-1" class="reference"><a href="#cite_note-yaml_structures-24"><span class="cite-bracket">[</span>24<span class="cite-bracket">]</span></a></sup> </p><p>For clarity, compactness, and avoiding data entry errors, YAML provides node anchors (using <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&</code>) and references (using <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">*</code>). References to the anchor work for all data types (see the ship-to reference in the example below). </p><p>Below is an example of a queue in an instrument sequencer in which two steps are referenced without being fully described. </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nn">---</span><span class="w"> </span><span class="c1"># Sequencer protocols for Laser eye surgery</span> <span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">step</span><span class="p">:</span><span class="w"> </span><span class="nl">&id001</span><span class="w"> </span><span class="c1"># defines anchor label &id001</span> <span class="w"> </span><span class="nt">instrument</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Lasik 2000</span> <span class="w"> </span><span class="nt">pulseEnergy</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">5.4</span> <span class="w"> </span><span class="nt">pulseDuration</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">12</span> <span class="w"> </span><span class="nt">repetition</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">1000</span> <span class="w"> </span><span class="nt">spotSize</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">1mm</span> <span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">step</span><span class="p">:</span><span class="w"> </span><span class="nl">&id002</span> <span class="w"> </span><span class="nt">instrument</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Lasik 2000</span> <span class="w"> </span><span class="nt">pulseEnergy</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">5.0</span> <span class="w"> </span><span class="nt">pulseDuration</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">10</span> <span class="w"> </span><span class="nt">repetition</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">500</span> <span class="w"> </span><span class="nt">spotSize</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">2mm</span> <span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">Instrument1</span><span class="p">:</span><span class="w"> </span><span class="nv">*id001</span><span class="w"> </span><span class="c1"># refers to the first step (with anchor &id001)</span> <span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">Instrument2</span><span class="p">:</span><span class="w"> </span><span class="nv">*id002</span><span class="w"> </span><span class="c1"># refers to the second step</span> </pre></div> <p>Explicit data typing is seldom seen in the majority of YAML documents since YAML autodetects simple types. Data types can be divided into three categories: core, defined, and user-defined. Core are ones expected to exist in any parser (e.g. floats, ints, strings, lists, maps, ...). Many more advanced data types, such as binary data, are defined in the YAML specification but not supported in all implementations. Finally YAML defines a way to extend the data type definitions locally to accommodate user-defined classes, structures or primitives (e.g. quad-precision floats). </p><p>YAML autodetects the datatype of the entity, but sometimes one wants to cast the datatype explicitly. The most common situation is where a single-word string that looks like a number, Boolean or tag requires disambiguation by surrounding it with quotes or using an explicit datatype tag. </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nn">---</span> <span class="nt">a</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">123</span><span class="w"> </span><span class="c1"># an integer</span> <span class="nt">b</span><span class="p">:</span><span class="w"> </span><span class="s">"123"</span><span class="w"> </span><span class="c1"># a string, disambiguated by quotes</span> <span class="nt">c</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">123.0</span><span class="w"> </span><span class="c1"># a float</span> <span class="nt">d</span><span class="p">:</span><span class="w"> </span><span class="kt">!!float</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">123</span><span class="w"> </span><span class="c1"># also a float via explicit data type prefixed by (!!)</span> <span class="nt">e</span><span class="p">:</span><span class="w"> </span><span class="kt">!!str</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">123</span><span class="w"> </span><span class="c1"># a string, disambiguated by explicit type</span> <span class="nt">f</span><span class="p">:</span><span class="w"> </span><span class="kt">!!str</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Yes</span><span class="w"> </span><span class="c1"># a string via explicit type</span> <span class="nt">g</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Yes</span><span class="w"> </span><span class="c1"># a Boolean True (yaml1.1), string "Yes" (yaml1.2)</span> <span class="nt">h</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Yes we have No bananas</span><span class="w"> </span><span class="c1"># a string, "Yes" and "No" disambiguated by context.</span> </pre></div> <p>Not every implementation of YAML has every specification-defined data type. These built-in types use a double-exclamation <a href="/wiki/Sigil_(computer_programming)" title="Sigil (computer programming)">sigil</a> prefix (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">!!</code>). Particularly interesting ones not shown here are sets, ordered maps, timestamps, and hexadecimal. Here is an example of <a href="/wiki/Base64" title="Base64">base64</a>-encoded binary data. </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nn">---</span> <span class="nt">picture</span><span class="p">:</span><span class="w"> </span><span class="kt">!!binary</span><span class="w"> </span><span class="p p-Indicator">|</span> <span class="w"> </span><span class="no">R0lGODdhDQAIAIAAAAAAANn</span> <span class="w"> </span><span class="no">Z2SwAAAAADQAIAAACF4SDGQ</span> <span class="w"> </span><span class="no">ar3xxbJ9p0qa7R0YxwzaFME</span> <span class="w"> </span><span class="no">1IAADs=</span> </pre></div> <p>Many implementations of YAML can support user-defined data types for object serialization. Local data types are not universal data types but are defined in the application using the YAML parser library. Local data types use a single exclamation mark (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">!</code>). </p> <div class="mw-heading mw-heading3"><h3 id="Example">Example</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=7" title="Edit section: Example"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Data-structure hierarchy is maintained by outline indentation. </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nn">---</span> <span class="nt">receipt</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Oz-Ware Purchase Invoice</span> <span class="nt">date</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">2012-08-06</span> <span class="nt">customer</span><span class="p">:</span> <span class="w"> </span><span class="nt">first_name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Dorothy</span> <span class="w"> </span><span class="nt">family_name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Gale</span> <span class="nt">items</span><span class="p">:</span> <span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">part_no</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">A4786</span> <span class="w"> </span><span class="nt">descrip</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Water Bucket (Filled)</span> <span class="w"> </span><span class="nt">price</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">1.47</span> <span class="w"> </span><span class="nt">quantity</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">4</span> <span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">part_no</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">E1628</span> <span class="w"> </span><span class="nt">descrip</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">High Heeled "Ruby" Slippers</span> <span class="w"> </span><span class="nt">size</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">8</span> <span class="w"> </span><span class="nt">price</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">133.7</span> <span class="w"> </span><span class="nt">quantity</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">1</span> <span class="nt">bill-to</span><span class="p">:</span><span class="w"> </span><span class="nl">&id001</span> <span class="w"> </span><span class="nt">street</span><span class="p">:</span><span class="w"> </span><span class="p p-Indicator">|</span> <span class="w"> </span><span class="no">123 Tornado Alley</span> <span class="w"> </span><span class="no">Suite 16</span> <span class="w"> </span><span class="nt">city</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">East Centerville</span> <span class="w"> </span><span class="nt">state</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">KS</span> <span class="nt">ship-to</span><span class="p">:</span><span class="w"> </span><span class="nv">*id001</span> <span class="nt">specialDelivery</span><span class="p">:</span><span class="w"> </span><span class="p p-Indicator">></span> <span class="w"> </span><span class="no">Follow the Yellow Brick</span> <span class="w"> </span><span class="no">Road to the Emerald City.</span> <span class="w"> </span><span class="no">Pay no attention to the</span> <span class="w"> </span><span class="no">man behind the curtain.</span> <span class="nn">...</span> </pre></div> <p>Notice that strings do not require enclosure in quotation marks. The specific number of spaces in the indentation is unimportant as long as parallel elements have the same left justification and the hierarchically nested elements are indented further. This sample document defines an associative array with 7 top level keys: one of the keys, "items", contains a 2-element list, each element of which is itself an associative array with differing keys. Relational data and redundancy removal are displayed: the "ship-to" associative array content is copied from the "bill-to" associative array's content as indicated by the anchor (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&</code>) and reference (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">*</code>) labels. Optional blank lines can be added for readability. Multiple documents can exist in a single file/stream and are separated by <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">---</code>. An optional <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">...</code> can be used at the end of a file (useful for signaling an end in streamed communications without closing the pipe). </p> <div class="mw-heading mw-heading2"><h2 id="Features">Features</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=8" title="Edit section: Features"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Indented_delimiting">Indented delimiting</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=9" title="Edit section: Indented delimiting"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Because YAML primarily relies on outline indentation for structure, it is especially resistant to <a href="/wiki/Delimiter_collision" class="mw-redirect" title="Delimiter collision">delimiter collision</a>. YAML's insensitivity to quotation marks and braces in scalar values means one may embed XML, JSON or even YAML documents inside a YAML document by simply indenting it in a block literal (using <code>|</code> or <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">></code>): </p> <div class="mw-highlight mw-highlight-lang-yaml mw-content-ltr" dir="ltr"><pre><span></span><span class="nn">---</span> <span class="nt">example</span><span class="p">:</span><span class="w"> </span><span class="p p-Indicator">></span> <span class="w"> </span><span class="no">HTML goes into YAML without modification</span> <span class="nt">message</span><span class="p">:</span><span class="w"> </span><span class="p p-Indicator">|</span> <span class="w"> </span><span class="no"><blockquote style="font: italic 1em serif"></span> <span class="w"> </span><span class="no"><p>"Three is always greater than two,</span> <span class="w"> </span><span class="no">even for large values of two"</p></span> <span class="w"> </span><span class="no"><p>--Author Unknown</p></span> <span class="w"> </span><span class="no"></blockquote></span> <span class="nt">date</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">2007-06-01</span> </pre></div> <p>YAML may be placed in JSON by quoting and escaping all interior quotation marks. YAML may be placed in XML by escaping reserved characters (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr"><</code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">></code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">&</code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">'</code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">"</code>) and converting whitespace, or by placing it in a <a href="/wiki/CDATA" title="CDATA">CDATA</a> section. </p> <div class="mw-heading mw-heading3"><h3 id="Non-hierarchical_data_models">Non-hierarchical data models</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=10" title="Edit section: Non-hierarchical data models"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Unlike JSON, which can only represent data in a hierarchical model with each child node having a single parent, YAML also offers a simple relational scheme that allows repeats of identical data to be referenced from two or more points in the tree rather than entered redundantly at those points. This is similar to the facility IDREF built into XML.<sup id="cite_ref-25" class="reference"><a href="#cite_note-25"><span class="cite-bracket">[</span>25<span class="cite-bracket">]</span></a></sup> The YAML parser then expands these references into the fully populated data structures they imply when read in, so whatever program is using the parser does not have to be aware of a relational encoding model, unlike XML processors, which do not expand references. This expansion can enhance readability while reducing data entry errors in configuration files or processing protocols where many parameters remain the same in a sequential series of records while only a few vary. An example being that "ship-to" and "bill-to" records in an invoice are nearly always the same data. </p> <div class="mw-heading mw-heading3"><h3 id="Practical_considerations">Practical considerations</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=11" title="Edit section: Practical considerations"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>YAML is line-oriented and thus it is often simple to convert the unstructured output of existing programs into YAML format while having them retain much of the look of the original document. Because there are no closing tags, braces, or quotation marks to balance, it is generally easy to generate well-formed YAML directly from distributed print statements within unsophisticated programs. Likewise, the whitespace delimiters facilitate quick-and-dirty filtering of YAML files using the line-oriented commands in grep, AWK, Perl, Ruby, and Python. </p><p>In particular, unlike markup languages, chunks of consecutive YAML lines tend to be well-formed YAML documents themselves. This makes it very easy to write parsers that do not have to process a document in its entirety (e.g. balancing opening and closing tags and navigating quoted and escaped characters) before they begin extracting specific records within. This property is particularly expedient when iterating in a single, stateless pass, over records in a file whose entire data structure is too large to hold in memory, or for which reconstituting the entire structure to extract one item would be prohibitively expensive. </p><p>Counterintuitively, although its indented delimiting might seem to complicate deeply nested hierarchies, YAML handles indents as small as a single space, and this may achieve better compression than markup languages. Additionally, extremely deep indentation can be avoided entirely by either: 1) reverting to "inline style" (i.e. JSON-like format) without the indentation; or 2) using relational anchors to unwind the hierarchy to a flat form that the YAML parser will transparently reconstitute into the full data structure.<sup id="cite_ref-26" class="reference"><a href="#cite_note-26"><span class="cite-bracket">[</span>26<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Security">Security</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=12" title="Edit section: Security"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>YAML is purely a data-representation language and thus has no executable commands. While <a href="/wiki/Application_security" title="Application security">validation</a> and <a href="/wiki/JavaScript#Misplaced_trust_in_the_client" title="JavaScript">safe parsing</a> is inherently possible in any data language, implementation is such a notorious pitfall that YAML's lack of an associated command language may be a relative security benefit. </p><p>However, YAML allows language-specific tags so that arbitrary local objects can be created by a parser that supports those tags. Any YAML parser that allows sophisticated object instantiation to be executed opens the potential for an injection attack. Perl parsers that allow loading of objects of arbitrary classes create so-called "blessed" values. Using these values may trigger unexpected behavior, e.g. if the class uses overloaded operators. This may lead to execution of arbitrary Perl code.<sup id="cite_ref-27" class="reference"><a href="#cite_note-27"><span class="cite-bracket">[</span>27<span class="cite-bracket">]</span></a></sup><sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Reliable_sources" title="Wikipedia:Reliable sources"><span title="The material near this tag may rely on an unreliable source. (January 2023)">unreliable source?</span></a></i>]</sup> </p><p>The situation is similar for Python or Ruby parsers. According to the PyYAML documentation:<sup id="cite_ref-28" class="reference"><a href="#cite_note-28"><span class="cite-bracket">[</span>28<span class="cite-bracket">]</span></a></sup> </p> <blockquote> <p>Note that the ability to construct an arbitrary Python object may be dangerous if you receive a YAML document from an untrusted source such as the Internet. The function <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">yaml.safe_load</code> limits this ability to simple Python objects like integers or lists. [...] </p><p>PyYAML allows you to construct a Python object of any type. Even instances of Python classes can be constructed using the <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">!!python/object</code> tag. </p> </blockquote> <div class="mw-heading mw-heading3"><h3 id="Data_processing_and_representation">Data processing and representation</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=13" title="Edit section: Data processing and representation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The YAML specification identifies an <i>instance document</i> as a "Presentation" or "character stream".<sup id="cite_ref-29" class="reference"><a href="#cite_note-29"><span class="cite-bracket">[</span>29<span class="cite-bracket">]</span></a></sup> The primary logical structures in a YAML instance document are scalars, sequences, and mappings.<sup id="cite_ref-TypesRepos_30-0" class="reference"><a href="#cite_note-TypesRepos-30"><span class="cite-bracket">[</span>30<span class="cite-bracket">]</span></a></sup> The YAML specification also indicates some basic constraints that apply to these primary logical structures. For example, according to the specification, mapping keys do not have an order. In every case where node order is significant, a sequence must be used.<sup id="cite_ref-31" class="reference"><a href="#cite_note-31"><span class="cite-bracket">[</span>31<span class="cite-bracket">]</span></a></sup> </p><p>Moreover, in defining conformance for YAML processors, the YAML specification defines two primary operations: <i>dump</i> and <i>load</i>. All YAML-compliant processors must provide <i>at least</i> one of these operations, and may optionally provide both.<sup id="cite_ref-32" class="reference"><a href="#cite_note-32"><span class="cite-bracket">[</span>32<span class="cite-bracket">]</span></a></sup> Finally, the YAML specification defines an <i>information model</i> or "representation graph", which must be created during processing for both <i>dump</i> and <i>load</i> operations, although this representation need not be made available to the user through an API.<sup id="cite_ref-33" class="reference"><a href="#cite_note-33"><span class="cite-bracket">[</span>33<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="Comparison_with_other_serialization_formats">Comparison with other serialization formats</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=14" title="Edit section: Comparison with other serialization formats"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Comparison_with_JSON">Comparison with JSON <span class="anchor" id="JSON"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=15" title="Edit section: Comparison with JSON"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">See also: <a href="/wiki/JSON#YAML" title="JSON">JSON § YAML</a></div> <p><a href="/wiki/JavaScript_Object_Notation" class="mw-redirect" title="JavaScript Object Notation">JSON</a> syntax is a basis of YAML version 1.2, which was promulgated with the express purpose of bringing YAML "into compliance with JSON as an official subset".<sup id="cite_ref-YAML_Version_1.2_4-2" class="reference"><a href="#cite_note-YAML_Version_1.2-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> Though prior versions of YAML were not strictly compatible,<sup id="cite_ref-34" class="reference"><a href="#cite_note-34"><span class="cite-bracket">[</span>34<span class="cite-bracket">]</span></a></sup> the discrepancies were rarely noticeable, and most JSON documents can be parsed by some YAML parsers such as Syck.<sup id="cite_ref-35" class="reference"><a href="#cite_note-35"><span class="cite-bracket">[</span>35<span class="cite-bracket">]</span></a></sup> This is because JSON's semantic structure is equivalent to the optional "inline-style" of writing YAML. While extended hierarchies can be written in inline-style like JSON, this is not a recommended YAML style except when it aids clarity. </p><p>YAML has many additional features not present in JSON, including comments, extensible data types, relational anchors, strings without quotation marks, and mapping types preserving key order. </p><p>Due to the <a href="/wiki/Concision" title="Concision">conciseness</a>, JSON <a href="/wiki/Serialization" title="Serialization">serialization</a> and deserialization is much faster than YAML.<sup id="cite_ref-36" class="reference"><a href="#cite_note-36"><span class="cite-bracket">[</span>36<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-37" class="reference"><a href="#cite_note-37"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Comparison_with_TOML">Comparison with TOML</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=16" title="Edit section: Comparison with TOML"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><a href="/wiki/TOML" title="TOML">TOML</a> was designed to be an advancement of the <a href="/wiki/INI_file" title="INI file">.ini file format</a>. YAML's minimal use of indicator characters is compared favorably to TOML's strict requirement of quotation marks and square brackets.<sup class="noprint Inline-Template noprint Template-Opinion" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Neutral_point_of_view/FAQ#Assert_facts,_not_opinions" title="Wikipedia:Neutral point of view/FAQ"><span title="This statement may be opinion presented as fact. (October 2023)">opinion</span></a></i>]</sup> YAML's use of <a href="/wiki/Off-side_rule" title="Off-side rule">significant indentation</a> has been contrasted with the <a href="/wiki/Property_(programming)#Dot_notation" title="Property (programming)">dot notation</a> of TOML's key and table names to convey the same semantic structure. Opinions differ on which convention leads to more-readable configuration files.<sup id="cite_ref-38" class="reference"><a href="#cite_note-38"><span class="cite-bracket">[</span>38<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-what-is-wrong-with-toml_39-0" class="reference"><a href="#cite_note-what-is-wrong-with-toml-39"><span class="cite-bracket">[</span>39<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Comparison_with_XML">Comparison with XML</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=17" title="Edit section: Comparison with XML"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>YAML lacks the notion of tag attributes that are found in XML. Instead YAML has extensible type declarations (including class types for objects). </p><p>YAML itself does not have XML's language-defined document schema descriptors that allow, for example, a document to self-validate. However, there are several externally defined schema descriptor languages for YAML (e.g. <a href="/wiki/Doctrine_(PHP)" title="Doctrine (PHP)">Doctrine</a>, <a href="/w/index.php?title=Kwalify&action=edit&redlink=1" class="new" title="Kwalify (page does not exist)">Kwalify</a> and Rx) that fulfill that role. Moreover, the semantics provided by YAML's language-defined type declarations in the YAML document itself frequently relaxes the need for a validator in simple, common situations. Additionally, <a href="/w/index.php?title=YAXML&action=edit&redlink=1" class="new" title="YAXML (page does not exist)">YAXML</a>, which represents YAML data structures in XML, allows XML schema importers and output mechanisms like <a href="/wiki/Extensible_Stylesheet_Language_Transformations" class="mw-redirect" title="Extensible Stylesheet Language Transformations">XSLT</a> to be applied to YAML. </p><p><a href="/wiki/Comparison_of_data-serialization_formats" title="Comparison of data-serialization formats">Comparison of data-serialization formats</a> provides a more comprehensive comparison of YAML with other serialization formats. </p> <div class="mw-heading mw-heading2"><h2 id="Software_(emitters_and_parsers)"><span id="Software_.28emitters_and_parsers.29"></span>Software (emitters and parsers)</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=18" title="Edit section: Software (emitters and parsers)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>For fixed data structures, YAML files can simply be generated using <i>print</i> commands that write both the data and the YAML specific decoration. To dump varying, or complex, hierarchical data, however, a dedicated YAML <i>emitter</i> is preferable. Similarly, simple YAML files (e.g. key-value pairs) are readily parsed with regular expressions. For more complex, or varying, data structures, a formal YAML <i>parser</i> is recommended. </p><p>YAML emitters and parsers exist for many popular languages. Most of them are written in the native language itself. Some are language bindings of the C library <i>libyaml</i>; they may run faster. There used to be another C library, called <i>Syck</i>, written and orphaned by <a href="/wiki/Why_the_lucky_stiff" title="Why the lucky stiff">why the lucky stiff</a>: it is unmaintained, there is no authoritative source bundle, and the web site has been hijacked. Hence the only recommendable C library is <i>libyaml</i>. It was originally developed by Kirill Simonov. In 2018, development was resumed by the new maintainers Ian Cordasco and Ingy döt Net.<sup id="cite_ref-40" class="reference"><a href="#cite_note-40"><span class="cite-bracket">[</span>40<span class="cite-bracket">]</span></a></sup> </p><p>C++ programmers have the choice between the C library <i>libyaml</i> and the C++ library <i>libyaml-cpp</i>. Both have completely independent code bases and completely different <a href="/wiki/Application_Programming_Interface" class="mw-redirect" title="Application Programming Interface">APIs</a>. The library <i>libyaml-cpp</i> still has a major version number of 0, indicating that the API may change at any moment, as happened indeed after version 0.3. There is a grammar-focused implementation written in C#, with an aim on extensions for the nested elements.<sup id="cite_ref-41" class="reference"><a href="#cite_note-41"><span class="cite-bracket">[</span>41<span class="cite-bracket">]</span></a></sup> </p><p>Some implementations of YAML, such as Perl's YAML.pm, will load an entire file (stream) and parse it <i>en masse</i>. Other implementations like PyYaml are lazy and iterate over the next document only upon request. For very large files in which one plans to handle the documents independently, instantiating the entire file before processing may be prohibitive. Thus in YAML.pm, occasionally one must chunk a file into documents and parse those individually. YAML makes this easy, since this simply requires splitting on the document end marker, which is defined as three periods at the start of a line followed by a whitespace (and possible a comment). This marker is forbidden in content.<sup id="cite_ref-YAML_spec_document_markers_42-0" class="reference"><a href="#cite_note-YAML_spec_document_markers-42"><span class="cite-bracket">[</span>42<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="Criticism">Criticism</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=19" title="Edit section: Criticism"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>YAML has been criticized for its <a href="/wiki/Significant_whitespace" class="mw-redirect" title="Significant whitespace">significant whitespace</a>, confusing features, insecure defaults, and its complex and ambiguous specification:<sup id="cite_ref-notgreat_43-0" class="reference"><a href="#cite_note-notgreat-43"><span class="cite-bracket">[</span>43<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-44" class="reference"><a href="#cite_note-44"><span class="cite-bracket">[</span>44<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-45" class="reference"><a href="#cite_note-45"><span class="cite-bracket">[</span>45<span class="cite-bracket">]</span></a></sup> </p> <ul><li>Configuration files can execute commands or load contents without the users realizing it.<sup id="cite_ref-notgreat_43-1" class="reference"><a href="#cite_note-notgreat-43"><span class="cite-bracket">[</span>43<span class="cite-bracket">]</span></a></sup></li> <li>Editing large YAML files is difficult, as indentation errors can go unnoticed.<sup id="cite_ref-notgreat_43-2" class="reference"><a href="#cite_note-notgreat-43"><span class="cite-bracket">[</span>43<span class="cite-bracket">]</span></a></sup></li> <li>Type autodetection is a source of errors. For example, unquoted <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">Yes</code> and <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">No</code> are converted to Booleans; software version numbers might be converted to floats.<sup id="cite_ref-notgreat_43-3" class="reference"><a href="#cite_note-notgreat-43"><span class="cite-bracket">[</span>43<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Norway_46-0" class="reference"><a href="#cite_note-Norway-46"><span class="cite-bracket">[</span>46<span class="cite-bracket">]</span></a></sup></li> <li>Truncated files are often interpreted as valid YAML due to the absence of terminators.</li> <li>The complexity of the standard led to inconsistent implementations and making the language non-portable.<sup id="cite_ref-notgreat_43-4" class="reference"><a href="#cite_note-notgreat-43"><span class="cite-bracket">[</span>43<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-47" class="reference"><a href="#cite_note-47"><span class="cite-bracket">[</span>47<span class="cite-bracket">]</span></a></sup></li></ul> <p>The perceived flaws and complexity of YAML has led to the emergence of stricter alternatives such as <a rel="nofollow" class="external text" href="https://github.com/crdoconnor/strictyaml">StrictYAML</a> and <a href="/w/index.php?title=NestedText&action=edit&redlink=1" class="new" title="NestedText (page does not exist)">NestedText</a>.<sup id="cite_ref-Norway_46-1" class="reference"><a href="#cite_note-Norway-46"><span class="cite-bracket">[</span>46<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=20" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Comparison_of_data-serialization_formats" title="Comparison of data-serialization formats">Comparison of data-serialization formats</a></li> <li><a href="/wiki/Lightweight_markup_language" title="Lightweight markup language">Lightweight markup language</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=21" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist"> <div class="mw-references-wrap mw-references-columns"><ol class="references"> <li id="cite_note-rfc9512-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-rfc9512_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-rfc9512_1-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPolliWildeAro2024" class="citation report cs1">Polli, Roberto; Wilde, Erik; Aro, Eemeli (2024-02-21). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/rfc9512/">YAML Media Type</a> (Report). Internet Engineering Task Force. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240221185855/https://datatracker.ietf.org/doc/rfc9512/">Archived</a> from the original on 2024-02-21<span class="reference-accessdate">. Retrieved <span class="nowrap">2024-02-21</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=report&rft.btitle=YAML+Media+Type&rft.pub=Internet+Engineering+Task+Force&rft.date=2024-02-21&rft.aulast=Polli&rft.aufirst=Roberto&rft.au=Wilde%2C+Erik&rft.au=Aro%2C+Eemeli&rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Frfc9512%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3551604-yaml">"yaml"</a>. <i>Apple Developer Documentation: Uniform Type Identifiers</i>. <a href="/wiki/Apple_Inc" class="mw-redirect" title="Apple Inc">Apple Inc</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230522155815/https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3551604-yaml">Archived</a> from the original on 2023-05-22<span class="reference-accessdate">. Retrieved <span class="nowrap">2023-05-22</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Apple+Developer+Documentation%3A+Uniform+Type+Identifiers&rft.atitle=yaml&rft_id=https%3A%2F%2Fdeveloper.apple.com%2Fdocumentation%2Funiformtypeidentifiers%2Futtype%2F3551604-yaml&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-1.0-3"><span class="mw-cite-backlink">^ <a href="#cite_ref-1.0_3-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-1.0_3-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-1.0_3-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-1.0_3-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/history/2001-12-10.html">"Yet Another Markup Language (YAML) 1.0 / Working Draft"</a>. 10 Dec 2001. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190710131145/https://yaml.org/spec/history/2001-12-10.html">Archived</a> from the original on 2019-07-10<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-28</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Yet+Another+Markup+Language+%28YAML%29+1.0+%2F+Working+Draft&rft.date=2001-12-10&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2Fhistory%2F2001-12-10.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-YAML_Version_1.2-4"><span class="mw-cite-backlink">^ <a href="#cite_ref-YAML_Version_1.2_4-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-YAML_Version_1.2_4-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-YAML_Version_1.2_4-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/1.2/spec.html">"YAML Ain't Markup Language (YAML) Version 1.2"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190124222648/https://yaml.org/spec/1.2/spec.html">Archived</a> from the original on 2019-01-24<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=YAML+Ain%27t+Markup+Language+%28YAML%29+Version+1.2&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2F1.2%2Fspec.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://docs.python.org/3/library/stdtypes.html">"Built-in Types — Python 3.9.6 documentation"</a>. <i>docs.python.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200614194325/https://docs.python.org/3/library/stdtypes.html">Archived</a> from the original on 2020-06-14<span class="reference-accessdate">. Retrieved <span class="nowrap">2021-08-19</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=docs.python.org&rft.atitle=Built-in+Types+%E2%80%94+Python+3.9.6+documentation&rft_id=https%3A%2F%2Fdocs.python.org%2F3%2Flibrary%2Fstdtypes.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects">"Standard built-in objects - JavaScript | MDN"</a>. <i>developer.mozilla.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210119075018/https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects">Archived</a> from the original on 2021-01-19<span class="reference-accessdate">. Retrieved <span class="nowrap">2021-08-19</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=developer.mozilla.org&rft.atitle=Standard+built-in+objects+-+JavaScript+%7C+MDN&rft_id=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FJavaScript%2FReference%2FGlobal_Objects&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFcorob-msft2021" class="citation web cs1">corob-msft (17 August 2021). <a rel="nofollow" class="external text" href="https://docs.microsoft.com/en-us/cpp/cpp/fundamental-types-cpp">"Built-in types (C++)"</a>. <i>docs.microsoft.com</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240613135924/https://learn.microsoft.com/en-us/cpp/cpp/fundamental-types-cpp?view=msvc-170">Archived</a> from the original on 2024-06-13<span class="reference-accessdate">. Retrieved <span class="nowrap">2021-08-19</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=docs.microsoft.com&rft.atitle=Built-in+types+%28C%2B%2B%29&rft.date=2021-08-17&rft.au=corob-msft&rft_id=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcpp%2Fcpp%2Ffundamental-types-cpp&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/">"The Official YAML Web Site"</a>. <i>yaml.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210318102345/https://yaml.org/">Archived</a> from the original on 2021-03-18<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-02-05</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=yaml.org&rft.atitle=The+Official+YAML+Web+Site&rft_id=https%3A%2F%2Fyaml.org%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.arthurkoziel.com/setting-up-vim-for-yaml/">"Setting up Vim for YAML editing"</a>. <i>arthurkoziel.com</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20211123022602/https://www.arthurkoziel.com/setting-up-vim-for-yaml/">Archived</a> from the original on 2021-11-23<span class="reference-accessdate">. Retrieved <span class="nowrap">2021-12-20</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=arthurkoziel.com&rft.atitle=Setting+up+Vim+for+YAML+editing&rft_id=https%3A%2F%2Fwww.arthurkoziel.com%2Fsetting-up-vim-for-yaml%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.emacswiki.org/emacs/YamlMode">"Yaml Mode"</a>. EmacsWiki. 2015-06-12. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20161108052715/https://www.emacswiki.org/emacs/YamlMode">Archived</a> from the original on 2016-11-08<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-12-05</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Yaml+Mode&rft.pub=EmacsWiki&rft.date=2015-06-12&rft_id=https%3A%2F%2Fwww.emacswiki.org%2Femacs%2FYamlMode&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFaukaost" class="citation web cs1">aukaost. <a rel="nofollow" class="external text" href="https://packagecontrol.io/packages/Pretty%20YAML">"Pretty YAML - Packages - Package Control"</a>. Packagecontrol.io. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20161108052511/https://packagecontrol.io/packages/Pretty%20YAML">Archived</a> from the original on 2016-11-08<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-12-05</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Pretty+YAML+-+Packages+-+Package+Control&rft.pub=Packagecontrol.io&rft.au=aukaost&rft_id=https%3A%2F%2Fpackagecontrol.io%2Fpackages%2FPretty%2520YAML&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://marketplace.eclipse.org/category/free-tagging/yaml">"yaml | Eclipse Plugins, Bundles and Products - Eclipse Marketplace"</a>. Marketplace.eclipse.org. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20161108133326/https://marketplace.eclipse.org/category/free-tagging/yaml">Archived</a> from the original on 2016-11-08<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-12-05</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=yaml+%26%23124%3B+Eclipse+Plugins%2C+Bundles+and+Products+-+Eclipse+Marketplace&rft.pub=Marketplace.eclipse.org&rft_id=https%3A%2F%2Fmarketplace.eclipse.org%2Fcategory%2Ffree-tagging%2Fyaml&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRuth_Kusterer" class="citation web cs1">Ruth Kusterer. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20161119003539/https://netbeans.org/features/ruby/index.html">"NetBeans IDE - Ruby and Ruby on Rails Development"</a>. Netbeans.org. Archived from <a rel="nofollow" class="external text" href="https://netbeans.org/features/ruby/index.html">the original</a> on 2016-11-19<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-12-05</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=NetBeans+IDE+-+Ruby+and+Ruby+on+Rails+Development&rft.pub=Netbeans.org&rft.au=Ruth+Kusterer&rft_id=https%3A%2F%2Fnetbeans.org%2Ffeatures%2Fruby%2Findex.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-14">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/faq.html">"YAML Ain't Markup Language"</a>. September 24, 2006. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20060924190202/https://yaml.org/faq.html">Archived</a> from the original on 2006-09-24.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=YAML+Ain%27t+Markup+Language&rft.date=2006-09-24&rft_id=https%3A%2F%2Fyaml.org%2Ffaq.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-15">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFEvans2001" class="citation web cs1">Evans, Clark (May 11, 2001). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20010603012942/http://groups.yahoo.com/group/sml-dev/message/4710">"YAML Draft 0.1"</a>. Yahoo! Tech groups: sml-dev. Archived from <a rel="nofollow" class="external text" href="https://groups.yahoo.com/neo/groups/sml-dev/conversations/topics/4710">the original</a> on 2001-06-03<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-03-21</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=YAML+Draft+0.1&rft.pub=Yahoo%21+Tech+groups%3A+sml-dev&rft.date=2001-05-11&rft.aulast=Evans&rft.aufirst=Clark&rft_id=https%3A%2F%2Fgroups.yahoo.com%2Fneo%2Fgroups%2Fsml-dev%2Fconversations%2Ftopics%2F4710&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-yaml_org_about-16"><span class="mw-cite-backlink">^ <a href="#cite_ref-yaml_org_about_16-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-yaml_org_about_16-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/about.html">"YAML Ain't Markup Language: About"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190414205219/https://yaml.org/about.html">Archived</a> from the original on 2019-04-14<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=YAML+Ain%27t+Markup+Language%3A+About&rft_id=https%3A%2F%2Fyaml.org%2Fabout.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-YAML_spec_2001_08_01-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-YAML_spec_2001_08_01_17-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/history/2001-08-01.html">"Yet Another Markup Language (YAML) 1.0"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190414205247/https://yaml.org/spec/history/2001-08-01.html">Archived</a> from the original on 2019-04-14<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=Yet+Another+Markup+Language+%28YAML%29+1.0&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2Fhistory%2F2001-08-01.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-YAML_name_orig_2011_08_06-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-YAML_name_orig_2011_08_06_18-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://stackoverflow.com/questions/6968366/if-yaml-aint-markup-language-what-is-it">"Yet Another Markup Language (YAML) 1.0"</a>. <i>stackoverflow.com</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210423212857/https://stackoverflow.com/questions/6968366/if-yaml-aint-markup-language-what-is-it">Archived</a> from the original on 2021-04-23<span class="reference-accessdate">. Retrieved <span class="nowrap">2021-03-24</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=stackoverflow.com&rft.atitle=Yet+Another+Markup+Language+%28YAML%29+1.0&rft_id=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F6968366%2Fif-yaml-aint-markup-language-what-is-it&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/refcard.html">"YAML<span class="nowrap"> </span>1.1 Reference Card"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190414205255/https://yaml.org/refcard.html">Archived</a> from the original on 2019-04-14<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=YAML%3Cspan+class%3D%22nowrap%22%3E+%3C%2Fspan%3E1.1+Reference+Card&rft_id=https%3A%2F%2Fyaml.org%2Frefcard.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-20">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/1.2/spec.html#id2771184">"YAML Ain't Markup Language (YAML) Version 1.2"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190124222648/https://yaml.org/spec/1.2/spec.html#id2771184">Archived</a> from the original on 2019-01-24<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=YAML+Ain%27t+Markup+Language+%28YAML%29+Version+1.2&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2F1.2%2Fspec.html%23id2771184&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-YAML_v1.2.2-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-YAML_v1.2.2_21-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/1.2.2/#indentation-spaces">"YAML specification v1.2.2 Section 6.1. Indentation Spaces"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230312144139/https://yaml.org/spec/1.2.2/#indentation-spaces">Archived</a> from the original on 2023-03-12<span class="reference-accessdate">. Retrieved <span class="nowrap">2023-03-12</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=YAML+specification+v1.2.2+Section+6.1.+Indentation+Spaces&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2F1.2.2%2F%23indentation-spaces&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/1.2/spec.html#id2780069">"YAML Ain't Markup Language (YAML) Version 1.2"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190124222648/https://yaml.org/spec/1.2/spec.html#id2780069">Archived</a> from the original on 2019-01-24<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=YAML+Ain%27t+Markup+Language+%28YAML%29+Version+1.2&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2F1.2%2Fspec.html%23id2780069&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-23">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20160917202144/http://www.jigocloud.com/en/blog/yaml-is-json">"Cloud Based Management apps"</a>. <i>JigoCloud.com</i>. Archived from <a rel="nofollow" class="external text" href="http://www.jigocloud.com/en/blog/yaml-is-json">the original</a> on 2016-09-17<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-09-28</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=JigoCloud.com&rft.atitle=Cloud+Based+Management+apps&rft_id=http%3A%2F%2Fwww.jigocloud.com%2Fen%2Fblog%2Fyaml-is-json&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-yaml_structures-24"><span class="mw-cite-backlink">^ <a href="#cite_ref-yaml_structures_24-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-yaml_structures_24-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/1.2/spec.html#id2760395">"YAML 1.2 specification of Structures"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190124222648/https://yaml.org/spec/1.2/spec.html#id2760395">Archived</a> from the original on 2019-01-24<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=YAML+1.2+specification+of+Structures&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2F1.2%2Fspec.html%23id2760395&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-25">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.w3.org/TR/2000/REC-xml-20001006#idref">"Extensible Markup Language (XML) 1.0 (Second Edition)"</a>. <i>W3.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220515043139/http://www.w3.org/TR/2000/REC-xml-20001006#idref">Archived</a> from the original on 15 May 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">27 May</span> 2015</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=W3.org&rft.atitle=Extensible+Markup+Language+%28XML%29+1.0+%28Second+Edition%29&rft_id=http%3A%2F%2Fwww.w3.org%2FTR%2F2000%2FREC-xml-20001006%23idref&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-26">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://insidelearn.com/introduction-to-yaml-a-hands-on-course">"Free Courses | Introduction to YAML - A hands -on course"</a>. <i>Insidelearn</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220826141729/https://insidelearn.com/introduction-to-yaml-a-hands-on-course">Archived</a> from the original on 2022-08-26<span class="reference-accessdate">. Retrieved <span class="nowrap">2022-08-04</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Insidelearn&rft.atitle=Free+Courses+%7C+Introduction+to+YAML+-+A+hands+-on+course&rft_id=https%3A%2F%2Finsidelearn.com%2Fintroduction-to-yaml-a-hands-on-course&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-27">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20221226211202/http://m.kuliah-daring-mm-ign.itbk.web.id/IT/2380-2260/SnakeYAML_3344_m-kuliah-daring-mm-ign-itbk.html">"YAML"</a>. <i><a href="/w/index.php?title=Teknik_Informatika&action=edit&redlink=1" class="new" title="Teknik Informatika (page does not exist)">Teknik Informatika</a></i>. 2022-08-04. Archived from <a rel="nofollow" class="external text" href="http://m.kuliah-daring-mm-ign.itbk.web.id/IT/2380-2260/SnakeYAML_3344_m-kuliah-daring-mm-ign-itbk.html">the original</a> on 2022-12-26<span class="reference-accessdate">. Retrieved <span class="nowrap">2022-08-04</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Teknik+Informatika&rft.atitle=YAML&rft.date=2022-08-04&rft_id=http%3A%2F%2Fm.kuliah-daring-mm-ign.itbk.web.id%2FIT%2F2380-2260%2FSnakeYAML_3344_m-kuliah-daring-mm-ign-itbk.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-28">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://pyyaml.org/wiki/PyYAMLDocumentation#LoadingYAML">"PyYAML Documentation, Loading YAML"</a>. <i>Pyyaml.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160924203235/http://pyyaml.org/wiki/PyYAMLDocumentation#LoadingYAML">Archived</a> from the original on 2016-09-24<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-09-28</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Pyyaml.org&rft.atitle=PyYAML+Documentation%2C+Loading+YAML&rft_id=http%3A%2F%2Fpyyaml.org%2Fwiki%2FPyYAMLDocumentation%23LoadingYAML&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-29">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/current.html#id2506012">"Ain't Markup Language (YAML) Version 1.1"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190414205303/https://yaml.org/spec/current.html#id2506012">Archived</a> from the original on 2019-04-14<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=Ain%27t+Markup+Language+%28YAML%29+Version+1.1&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2Fcurrent.html%23id2506012&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-TypesRepos-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-TypesRepos_30-0">^</a></b></span> <span class="reference-text">Additional, optional-use, logical structures are enumerated in the YAML types repository.<link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/type/index.html">"Language-Independent Types for YAML Version 1.1"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190414205311/https://yaml.org/type/index.html">Archived</a> from the original on 2019-04-14<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=Language-Independent+Types+for+YAML+Version+1.1&rft_id=https%3A%2F%2Fyaml.org%2Ftype%2Findex.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span> The tagged types in the YAML types repository are optional and therefore not essential for conformant YAML processors. "The use of these tags is not mandatory."</span> </li> <li id="cite_note-31"><span class="mw-cite-backlink"><b><a href="#cite_ref-31">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/current.html#id2508372">"YAML Ain't Markup Language (YAML) Version 1.1"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240613140044/https://yaml.org/spec/1.2.2/#id2508372">Archived</a> from the original on 2024-06-13<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=YAML+Ain%27t+Markup+Language+%28YAML%29+Version+1.1&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2Fcurrent.html%23id2508372&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-32"><span class="mw-cite-backlink"><b><a href="#cite_ref-32">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/current.html#id2504671">"Ain't Markup Language (YAML) Version 1.1"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240613140044/https://yaml.org/spec/1.2.2/#id2504671">Archived</a> from the original on 2024-06-13<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=Ain%27t+Markup+Language+%28YAML%29+Version+1.1&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2Fcurrent.html%23id2504671&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-33"><span class="mw-cite-backlink"><b><a href="#cite_ref-33">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/current.html#id2504309">"YAML Ain't Markup Language (YAML) Version 1.1"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190414205303/https://yaml.org/spec/current.html#id2504309">Archived</a> from the original on 2019-04-14<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=YAML+Ain%27t+Markup+Language+%28YAML%29+Version+1.1&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2Fcurrent.html%23id2504309&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-34">^</a></b></span> <span class="reference-text">The incompatibilities were as follows: JSON allows extended character sets like UTF-32 and had incompatible unicode character escape syntax relative to YAML; YAML required a space after separators like comma, equals, and colon while JSON does not. Some non-standard implementations of JSON extend the grammar to include Javascript's <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">/*...*/</code> comments. Handling such edge cases may require light pre-processing of the JSON before parsing as in-line YAML. See also <a rel="nofollow" class="external autonumber" href="https://metacpan.org/module/JSON::XS#JSON-and-YAML">[1]</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20130829102936/https://metacpan.org/module/JSON::XS#JSON-and-YAML">Archived</a> 2013-08-29 at the <a href="/wiki/Wayback_Machine" title="Wayback Machine">Wayback Machine</a>.</span> </li> <li id="cite_note-35"><span class="mw-cite-backlink"><b><a href="#cite_ref-35">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="http://www.jigocloud.com/en/blog/yaml-is-json">Parsing JSON with SYCK</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160917202144/http://www.jigocloud.com/en/blog/yaml-is-json">Archived</a> 2016-09-17 at the <a href="/wiki/Wayback_Machine" title="Wayback Machine">Wayback Machine</a>. Note that e.g. Symfony's YAML parser does not support line breaks inside [] or {} structures, which is a major incompatibility with JSON.</span> </li> <li id="cite_note-36"><span class="mw-cite-backlink"><b><a href="#cite_ref-36">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><span class="id-lock-subscription" title="Paid subscription required"><a rel="nofollow" class="external text" href="https://medium.com/geekculture/yaml-vs-json-vs-xml-in-go-bf4ebd1066f2">"YAML vs JSON vs XML in Go"</a></span>. <i>Medium</i>. 15 June 2021. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240124022825/https://medium.com/geekculture/yaml-vs-json-vs-xml-in-go-bf4ebd1066f2">Archived</a> from the original on 24 January 2024<span class="reference-accessdate">. Retrieved <span class="nowrap">31 January</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Medium&rft.atitle=YAML+vs+JSON+vs+XML+in+Go&rft.date=2021-06-15&rft_id=https%3A%2F%2Fmedium.com%2Fgeekculture%2Fyaml-vs-json-vs-xml-in-go-bf4ebd1066f2&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-37"><span class="mw-cite-backlink"><b><a href="#cite_ref-37">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.baeldung.com/yaml-json-differeneces">"Differences Between YAML and JSON"</a>. <i>Baeldung</i>. 9 July 2020. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230307202829/https://www.baeldung.com/yaml-json-differeneces">Archived</a> from the original on 7 March 2023<span class="reference-accessdate">. Retrieved <span class="nowrap">7 March</span> 2023</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Baeldung&rft.atitle=Differences+Between+YAML+and+JSON&rft.date=2020-07-09&rft_id=https%3A%2F%2Fwww.baeldung.com%2Fyaml-json-differeneces&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-38"><span class="mw-cite-backlink"><b><a href="#cite_ref-38">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSiebenmann2019" class="citation web cs1">Siebenmann, Chris (2019-04-30). <a rel="nofollow" class="external text" href="https://utcc.utoronto.ca/~cks/space/blog/tech/YamlWhitespaceProblem">"My problem with YAML's use of whitespace"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20231201100752/https://utcc.utoronto.ca/~cks/space/blog/tech/YamlWhitespaceProblem">Archived</a> from the original on 2023-12-01<span class="reference-accessdate">. Retrieved <span class="nowrap">2023-10-06</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=My+problem+with+YAML%27s+use+of+whitespace&rft.date=2019-04-30&rft.aulast=Siebenmann&rft.aufirst=Chris&rft_id=https%3A%2F%2Futcc.utoronto.ca%2F~cks%2Fspace%2Fblog%2Ftech%2FYamlWhitespaceProblem&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-what-is-wrong-with-toml-39"><span class="mw-cite-backlink"><b><a href="#cite_ref-what-is-wrong-with-toml_39-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://hitchdev.com/strictyaml/why-not/toml/">What is wrong with TOML?</a></span> </li> <li id="cite_note-40"><span class="mw-cite-backlink"><b><a href="#cite_ref-40">^</a></b></span> <span class="reference-text">yaml-core@lists.sourceforge.net, mail of June 27, 2018.</span> </li> <li id="cite_note-41"><span class="mw-cite-backlink"><b><a href="#cite_ref-41">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/DNemtsov/Lexepars.Grammars.Yaml">"YAML Grammar for Lexepars"</a>. <i><a href="/wiki/GitHub" title="GitHub">GitHub</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200917105202/https://github.com/DNemtsov/Lexepars.Grammars.Yaml">Archived</a> from the original on 2020-09-17<span class="reference-accessdate">. Retrieved <span class="nowrap">2020-02-20</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=GitHub&rft.atitle=YAML+Grammar+for+Lexepars&rft_id=https%3A%2F%2Fgithub.com%2FDNemtsov%2FLexepars.Grammars.Yaml&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-YAML_spec_document_markers-42"><span class="mw-cite-backlink"><b><a href="#cite_ref-YAML_spec_document_markers_42-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yaml.org/spec/1.2/spec.html#id2800401">"YAML Ain't Markup Language (YAML) Version 1.2 # 9.1.2 Document Markers"</a>. <i>YAML.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190124222648/https://yaml.org/spec/1.2/spec.html#id2800401">Archived</a> from the original on 2019-01-24<span class="reference-accessdate">. Retrieved <span class="nowrap">2019-05-29</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=YAML.org&rft.atitle=YAML+Ain%27t+Markup+Language+%28YAML%29+Version+1.2+%23+9.1.2+Document+Markers&rft_id=https%3A%2F%2Fyaml.org%2Fspec%2F1.2%2Fspec.html%23id2800401&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-notgreat-43"><span class="mw-cite-backlink">^ <a href="#cite_ref-notgreat_43-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-notgreat_43-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-notgreat_43-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-notgreat_43-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-notgreat_43-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFTournoij2016" class="citation web cs1">Tournoij, Martin (4 Sep 2016). <a rel="nofollow" class="external text" href="https://arp242.net/yaml-config.html">"YAML: probably not so great after all"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190510195249/https://arp242.net/yaml-config.html">Archived</a> from the original on 10 May 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">16 May</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=YAML%3A+probably+not+so+great+after+all&rft.date=2016-09-04&rft.aulast=Tournoij&rft.aufirst=Martin&rft_id=https%3A%2F%2Farp242.net%2Fyaml-config.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-44"><span class="mw-cite-backlink"><b><a href="#cite_ref-44">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://noyaml.com/">"That's a lot of YAML"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190302030219/https://noyaml.com/">Archived</a> from the original on 2 March 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">16 May</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=That%27s+a+lot+of+YAML&rft_id=https%3A%2F%2Fnoyaml.com%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-45"><span class="mw-cite-backlink"><b><a href="#cite_ref-45">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/cblp/yaml-sucks">"YAML sucks"</a>. <i><a href="/wiki/GitHub" title="GitHub">GitHub</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190407140216/https://github.com/cblp/yaml-sucks">Archived</a> from the original on 7 April 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">16 May</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=GitHub&rft.atitle=YAML+sucks&rft_id=https%3A%2F%2Fgithub.com%2Fcblp%2Fyaml-sucks&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-Norway-46"><span class="mw-cite-backlink">^ <a href="#cite_ref-Norway_46-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Norway_46-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://hitchdev.com/strictyaml/why/implicit-typing-removed/">"The Norway Problem - why StrictYAML refuses to do implicit typing and so should you"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200221213116/https://hitchdev.com/strictyaml/why/implicit-typing-removed/">Archived</a> from the original on 21 February 2020<span class="reference-accessdate">. Retrieved <span class="nowrap">3 June</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=The+Norway+Problem+-+why+StrictYAML+refuses+to+do+implicit+typing+and+so+should+you&rft_id=https%3A%2F%2Fhitchdev.com%2Fstrictyaml%2Fwhy%2Fimplicit-typing-removed%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> <li id="cite_note-47"><span class="mw-cite-backlink"><b><a href="#cite_ref-47">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://matrix.yaml.io/valid.html">"YAML Test Matrix"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200716003514/https://matrix.yaml.io/valid.html">Archived</a> from the original on 2020-07-16<span class="reference-accessdate">. Retrieved <span class="nowrap">2020-04-03</span></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=YAML+Test+Matrix&rft_id=https%3A%2F%2Fmatrix.yaml.io%2Fvalid.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AYAML" class="Z3988"></span></span> </li> </ol></div></div> <div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=YAML&action=edit&section=22" title="Edit section: External links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><span class="official-website"><span class="url"><a rel="nofollow" class="external text" href="https://yaml.org">Official website</a></span></span></li> <li><a rel="nofollow" class="external text" href="https://yamlscript.org">YAMLScript</a></li></ul> <div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div><div role="navigation" class="navbox" aria-labelledby="Data_exchange_formats140" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Data_exchange" title="Template:Data exchange"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Data_exchange" title="Template talk:Data exchange"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Data_exchange" title="Special:EditPage/Template:Data exchange"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Data_exchange_formats140" style="font-size:114%;margin:0 4em"><a href="/wiki/Data_exchange" title="Data exchange">Data exchange</a> formats</div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Human-readable_medium_and_data" title="Human-readable medium and data">Human readable</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Atom_(web_standard)" title="Atom (web standard)">Atom</a></li> <li><a href="/wiki/Comma-separated_values" title="Comma-separated values">CSV</a></li> <li><a href="/wiki/EDIFACT" title="EDIFACT">EDIFACT</a></li> <li><a href="/wiki/JSON" title="JSON">JSON</a> <ul><li><a href="/wiki/JSON_Web_Encryption" title="JSON Web Encryption">Web Encryption</a></li> <li><a href="/wiki/JSON_Web_Token" title="JSON Web Token">Web Token</a></li> <li><a href="/wiki/JSON_Web_Signature" title="JSON Web Signature">Web Signature</a></li></ul></li> <li><a href="/wiki/Property_list" title="Property list">Property list</a></li> <li><a href="/wiki/Resource_Description_Framework" title="Resource Description Framework">RDF</a></li> <li><a href="/wiki/Rebol" title="Rebol">Rebol</a></li> <li><a href="/wiki/TOML" title="TOML">TOML</a></li> <li><a href="/wiki/XML" title="XML">XML</a></li> <li><a class="mw-selflink selflink">YAML</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Binary_file" title="Binary file">Binary</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Action_Message_Format" title="Action Message Format">AMF</a></li> <li><a href="/wiki/Ascii85" title="Ascii85">Ascii85</a></li> <li><a href="/wiki/ASN.1" title="ASN.1">ASN.1</a> <ul><li><a href="/wiki/Structure_of_Management_Information" title="Structure of Management Information">SMI</a></li></ul></li> <li><a href="/wiki/Apache_Avro" title="Apache Avro">Avro</a></li> <li><a href="/wiki/Base32" title="Base32">Base32</a></li> <li><a href="/wiki/Base64" title="Base64">Base64</a></li> <li><a href="/wiki/Bencode" title="Bencode">Bencode</a></li> <li><a href="/wiki/BSON" title="BSON">BSON</a> <ul><li><a href="/wiki/UBJSON" title="UBJSON">UBJSON</a></li></ul></li> <li><a href="/wiki/Cap%27n_Proto" title="Cap'n Proto">Cap'n Proto</a></li> <li><a href="/wiki/CBOR" title="CBOR">CBOR</a></li> <li><a href="/wiki/FlatBuffers" title="FlatBuffers">FlatBuffers</a></li> <li><a href="/wiki/MessagePack" title="MessagePack">MessagePack</a></li> <li><a href="/wiki/Property_list" title="Property list">Property list</a></li> <li><a href="/wiki/Protocol_Buffers" title="Protocol Buffers">Protocol Buffers</a></li> <li><a href="/wiki/Apache_Thrift" title="Apache Thrift">Thrift</a></li> <li><a href="/wiki/Cyphal" title="Cyphal">Cyphal</a> DSDL</li> <li><a href="/wiki/External_Data_Representation" title="External Data Representation">XDR</a></li> <li><a href="/wiki/Uuencoding" title="Uuencoding">uuencode</a></li> <li><a href="/wiki/YEnc" title="YEnc">yEnc</a></li></ul> </div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div><a href="/wiki/Comparison_of_data-serialization_formats" title="Comparison of data-serialization formats">Comparison of data-serialization formats</a></div></td></tr></tbody></table></div> <!-- NewPP limit report Parsed by mw‐api‐int.codfw.main‐57bccb6b4d‐rlrl5 Cached time: 20250223115858 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.618 seconds Real time usage: 0.774 seconds Preprocessor visited node count: 4995/1000000 Post‐expand include size: 95842/2097152 bytes Template argument size: 4563/2097152 bytes Highest expansion depth: 24/100 Expensive parser function count: 64/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 189477/5000000 bytes Lua time usage: 0.363/10.000 seconds Lua memory usage: 7945182/52428800 bytes Number of Wikibase entities loaded: 1/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 694.363 1 -total 32.94% 228.693 1 Template:Reflist 19.31% 134.063 42 Template:Cite_web 12.88% 89.468 1 Template:Short_description 9.96% 69.192 1 Template:Data_Exchange 9.53% 66.150 1 Template:Infobox_file_format 9.41% 65.354 1 Template:Navbox 9.00% 62.462 1 Template:Infobox 7.69% 53.366 2 Template:Pagetype 7.38% 51.232 1 Template:Cite_report --> <!-- Saved in parser cache with key enwiki:pcache:326530:|#|:idhash:canonical and timestamp 20250223115858 and revision id 1277222107. Rendering was triggered because: api-parse --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?useformat=desktop&type=1x1&usesul3=0" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=YAML&oldid=1277222107">https://en.wikipedia.org/w/index.php?title=YAML&oldid=1277222107</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Computer-related_introductions_in_2001" title="Category:Computer-related introductions in 2001">Computer-related introductions in 2001</a></li><li><a href="/wiki/Category:Data_serialization_formats" title="Category:Data serialization formats">Data serialization formats</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Pages_using_the_Phonos_extension" title="Category:Pages using the Phonos extension">Pages using the Phonos extension</a></li><li><a href="/wiki/Category:Webarchive_template_wayback_links" title="Category:Webarchive template wayback links">Webarchive template wayback links</a></li><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_matches_Wikidata" title="Category:Short description matches Wikidata">Short description matches Wikidata</a></li><li><a href="/wiki/Category:Pages_including_recorded_pronunciations" title="Category:Pages including recorded pronunciations">Pages including recorded pronunciations</a></li><li><a href="/wiki/Category:All_articles_lacking_reliable_references" title="Category:All articles lacking reliable references">All articles lacking reliable references</a></li><li><a href="/wiki/Category:Articles_lacking_reliable_references_from_January_2023" title="Category:Articles lacking reliable references from January 2023">Articles lacking reliable references from January 2023</a></li><li><a href="/wiki/Category:All_articles_with_minor_POV_problems" title="Category:All articles with minor POV problems">All articles with minor POV problems</a></li><li><a href="/wiki/Category:Articles_with_minor_POV_problems_from_October_2023" title="Category:Articles with minor POV problems from October 2023">Articles with minor POV problems from October 2023</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 23 February 2025, at 11:58<span class="anonymous-show"> (UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=YAML&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><picture><source media="(min-width: 500px)" srcset="/static/images/footer/wikimedia-button.svg" width="84" height="29"><img src="/static/images/footer/wikimedia.svg" width="25" height="25" alt="Wikimedia Foundation" lang="en" loading="lazy"></picture></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><picture><source media="(min-width: 500px)" srcset="/w/resources/assets/poweredby_mediawiki.svg" width="88" height="31"><img src="/w/resources/assets/mediawiki_compact.svg" alt="Powered by MediaWiki" width="25" height="25" loading="lazy"></picture></a></li> </ul> </footer> </div> </div> </div> <div class="vector-header-container vector-sticky-header-container"> <div id="vector-sticky-header" class="vector-sticky-header"> <div class="vector-sticky-header-start"> <div class="vector-sticky-header-icon-start vector-button-flush-left vector-button-flush-right" aria-hidden="true"> <button class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-sticky-header-search-toggle" tabindex="-1" data-event-name="ui.vector-sticky-search-form.icon"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </button> </div> <div role="search" class="vector-search-box-vue vector-search-box-show-thumbnail vector-search-box"> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail"> <form action="/w/index.php" id="vector-sticky-search-form" class="cdx-search-input cdx-search-input--has-end-button"> <div class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia"> <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <div class="vector-sticky-header-context-bar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-sticky-header-toc" class="vector-dropdown mw-portlet mw-portlet-sticky-header-toc vector-sticky-header-toc vector-button-flush-left" > <input type="checkbox" id="vector-sticky-header-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-sticky-header-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-sticky-header-toc-label" for="vector-sticky-header-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-sticky-header-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div class="vector-sticky-header-context-bar-primary" aria-hidden="true" ><span class="mw-page-title-main">YAML</span></div> </div> </div> <div class="vector-sticky-header-end" aria-hidden="true"> <div class="vector-sticky-header-icons"> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-talk-sticky-header" tabindex="-1" data-event-name="talk-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbles mw-ui-icon-wikimedia-speechBubbles"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-subject-sticky-header" tabindex="-1" data-event-name="subject-sticky-header"><span class="vector-icon mw-ui-icon-article mw-ui-icon-wikimedia-article"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-history-sticky-header" tabindex="-1" data-event-name="history-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-history mw-ui-icon-wikimedia-wikimedia-history"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only mw-watchlink" id="ca-watchstar-sticky-header" tabindex="-1" data-event-name="watch-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-star mw-ui-icon-wikimedia-wikimedia-star"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-edit-sticky-header" tabindex="-1" data-event-name="wikitext-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-wikiText mw-ui-icon-wikimedia-wikimedia-wikiText"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-ve-edit-sticky-header" tabindex="-1" data-event-name="ve-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-edit mw-ui-icon-wikimedia-wikimedia-edit"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-viewsource-sticky-header" tabindex="-1" data-event-name="ve-edit-protected-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-editLock mw-ui-icon-wikimedia-wikimedia-editLock"></span> <span></span> </a> </div> <div class="vector-sticky-header-buttons"> <button class="cdx-button cdx-button--weight-quiet mw-interlanguage-selector" id="p-lang-btn-sticky-header" tabindex="-1" data-event-name="ui.dropdown-p-lang-btn-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>23 languages</span> </button> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive" id="ca-addsection-sticky-header" tabindex="-1" data-event-name="addsection-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbleAdd-progressive mw-ui-icon-wikimedia-speechBubbleAdd-progressive"></span> <span>Add topic</span> </a> </div> <div class="vector-sticky-header-icon-end"> <div class="vector-user-links"> </div> </div> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-d8647bfd6-5tkp2","wgBackendResponseTime":145,"wgPageParseReport":{"limitreport":{"cputime":"0.618","walltime":"0.774","ppvisitednodes":{"value":4995,"limit":1000000},"postexpandincludesize":{"value":95842,"limit":2097152},"templateargumentsize":{"value":4563,"limit":2097152},"expansiondepth":{"value":24,"limit":100},"expensivefunctioncount":{"value":64,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":189477,"limit":5000000},"entityaccesscount":{"value":1,"limit":400},"timingprofile":["100.00% 694.363 1 -total"," 32.94% 228.693 1 Template:Reflist"," 19.31% 134.063 42 Template:Cite_web"," 12.88% 89.468 1 Template:Short_description"," 9.96% 69.192 1 Template:Data_Exchange"," 9.53% 66.150 1 Template:Infobox_file_format"," 9.41% 65.354 1 Template:Navbox"," 9.00% 62.462 1 Template:Infobox"," 7.69% 53.366 2 Template:Pagetype"," 7.38% 51.232 1 Template:Cite_report"]},"scribunto":{"limitreport-timeusage":{"value":"0.363","limit":"10.000"},"limitreport-memusage":{"value":7945182,"limit":52428800}},"cachereport":{"origin":"mw-api-int.codfw.main-57bccb6b4d-rlrl5","timestamp":"20250223115858","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"YAML","url":"https:\/\/en.wikipedia.org\/wiki\/YAML","sameAs":"http:\/\/www.wikidata.org\/entity\/Q281876","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q281876","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2003-09-25T01:42:40Z","dateModified":"2025-02-23T11:58:53Z","headline":"human-readable data serialization format"}</script> </body> </html>