[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-759568-105":3,"detail-sidebar-cat-0-en-105":79,"doc-detail-759568-en":129,"doc-similar-759568":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":72,"head_meta":74,"extra_data":76,"updated_unix":78},105,"en","yaml-getting-started-basic-tutorial","YAML - Getting Started - Basic Tutorial","","YAML is introduced as a human-readable data serialization standard that supports both sequences and mappings in flow or block style. The guide covers core ideas such as basic syntax, comments, implicit versus explicit and nested mappings, and how to structure hierarchical data. It also explains anchors and aliases for transcluded content, including merge-keys, plus practical patterns like an array of dictionaries. Escape rules, character handling, and multi-line string splitting are demonstrated with examples.",{"@graph":14,"@context":71},[15,34,54],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/yaml-getting-started-basic-tutorial/759568/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":48,"encodingFormat":47,"isAccessibleForFree":49,"interactionStatistic":50},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/yaml-getting-started-basic-tutorial/759568.png","ImageObject",300,407,{"name":42,"@type":43},"Ben ","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28",true,{"@type":51,"interactionType":52,"userInteractionCount":22},"InteractionCounter",{"@type":53},"ViewAction",{"@type":55,"mainEntity":56},"FAQPage",[57,63,67],{"name":58,"@type":59,"acceptedAnswer":60},"What is YAML, and why is it designed for humans and machines?","Question",{"text":61,"@type":62},"YAML is a human-readable data serialization standard for storing structured data with a hierarchy and minimal overhead. It uses text-based syntax that is readable by both humans and programs.","Answer",{"name":64,"@type":59,"acceptedAnswer":65},"How are comments written in YAML?",{"text":66,"@type":62},"Comments start with # and continue to the end of the line. They must be separated from other tokens by whitespace, and # inside quoted scalars does not start comments.",{"name":68,"@type":59,"acceptedAnswer":69},"How do anchors, aliases, and merge-keys help reuse YAML content?",{"text":70,"@type":62},"Anchors and aliases allow transcluded content and cross-referencing of rows in YAML tables. Merge-keys enable combining information from another YAML table via reusable structures.","https://schema.org",{"og:url":32,"og:type":73,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":75,"canonical":32},"index,follow",{"doc_id":77,"site_id":7},759568,1795887875,{"code":4,"msg":80,"data":81},"success",[82,86,90,94,99,103,108,113,118,121,125],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":83,"show_sort_weight":84,"slug":85},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":87,"show_sort_weight":88,"slug":89},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":91,"show_sort_weight":92,"slug":93},"Exam",70,"exam",{"id":95,"doc_module":4,"doc_module_name":25,"category_name":96,"show_sort_weight":97,"slug":98},5,"Comic",60,"comic",{"id":100,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":101,"slug":102},6,50,"technology",{"id":104,"doc_module":4,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},7,"Healthcare",40,"healthcare",{"id":109,"doc_module":4,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},8,"Research & Report",30,"research-report",{"id":114,"doc_module":4,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},9,"Religion & Spirituality",20,"religion-spirituality",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":116,"slug":120},"World Cup","world-cup",{"id":122,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":122,"slug":124},10,"Lifestyle","lifestyle",{"id":126,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":95,"slug":128},19,"General","general",{"code":4,"msg":80,"data":130},{"doc_id":77,"user_id":131,"nickname":42,"user_avatar":132,"doc_module":4,"category_id":100,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":22,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":138,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":78,"read_time":143,"preview_page_count":33,"preview_urls":144},2336478951081,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","yaml  \n\\#yaml  \nTable of Contents  \nAbout 1  \nChapter 1: Getting started with yaml2  \nRemarks2  \nVersions2  \nExamples2  \nBasic Yaml syntax2  \nBasic YAML Types3  \nYAML Sequential Data3  \nComments3  \nBlock Style Mappings4  \nSplitting text strings over multiple lines4  \nEscaping Characters5  \nChapter 2: Using anchors and aliases for transcluded content6  \nExamples6  \nCreating an \"Array of Dictionaries\" table with YAML anchors as row identifiers6  \nProblem6  \nSolution6  \nRationale6  \nPitfalls7  \nSee also7  \nUsing YAML aliases to cross-reference rows from a YAML table7  \nProblem7  \nSolution8  \nRationale8  \nPitfalls8  \nSee also8  \nUsing YAML merge-keys to cross-reference rows from another YAML table8  \nProblem9  \nSolution9  \nRationale9  \nPitfalls9  \nSee also 10  \nCredits 11  \nAbout  \nYou can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: yaml  \nIt is an unofficial and free yaml ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official yaml.  \nThe content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.  \nUse the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to [info@zzzprojects.com](info@zzzprojects.com)  \nChapter 1: Getting started with yaml  \nRemarks  \nYAML is a recursive acronym for \"YAML Ain't Markup Language\". It is a human readable data serialization standard for all programming languages.  \nVersions  \n\n| Version | Release Date |\n| --- | --- |\n| 1.0 | 2004-01-29 |\n| 1.1 | 2005-01-18 |\n| 1.2 | 2009-10-01 |\n\nExamples  \nBasic Yaml syntax  \nYAML is a text based format allowing to store structured data in a hierarchy. YAML is designed tobe human and machine readable with a minimum of overhead. The YAML specification can be found [at](at yaml.org. There)[ yaml.org](at yaml.org. There)[. There](at yaml.org. There) is also a reference card  \nComments start with \\# and go till newline, comments must be separated from other tokens by whitespace. Whitespace isn't free, indentation must be spaces, not tabs. YAML will consider that lines prefixed with more spaces than the parent key are contained inside it. Moreover, all lines must be prefixed with the same amount of spaces to belong to the same map.  \nYAML has sequences and mappings as collection types, both can be represented in flow and block style.  \nAn sequence of scalar strings in YAML looks like:  \n[ one, two, three ] \\# flow style  \n\\# or block style  \n-one  \n-two  \n-three  \nA mapping consists of key/value pairs:  \nindex: 4 \\# block style  \nname: nali  \n\\# or  \n{ index: 4, name: nali } \\# flow style  \n\\# or nested (equivalent of { level: { one: { two: fun } } }):  \nlevel:  \none:  \ntwo: fun  \nBasic YAML Types  \ninteger: 25  \nstring: \"25\"  \nfloat: 25.0  \nboolean: true  \nnull type: null  \nYAML Sequential Data  \nSame list level:  \n-Cat  \n-Dog  \n-Goldfish  \nNested List:  \n-  \n-Cat  \n-Dog  \n-Goldfish  \nComments  \n\\# This comment occupies a whole line  \n- some item \\# This comment succeeds content of a line  \n-[http://example.com/\\#nocomment](http://example.com/#nocomment)  \n- \"This \\# does not introduce a comment . \"- |  \nThis is a block scalar .  \nA \\# inside it does not introduce a comment .  \n\\# unless it is less indented than the first line (this is one)  \nNote that for a \\# to introduce a comment, it must either  \n• occur at the beginning of a line, or  \n• be preceded by whitespace.  \n\\# must always be followed by whitespace. \\# inside quoted scalars never start comments. \\# may introduce comments at the end","cbCaiaTAscRf4XpB","https://ap.wps.com/l/cbCaiaTAscRf4XpB","pdf",899885,14,"English","# About\n# Chapter 1: Getting started with yaml\n## Remarks\n## Versions\n## Basic Yaml syntax\n## Basic YAML Types\n## YAML Sequential Data\n## Comments\n## Block Style Mappings\n## Splitting text strings over multiple lines\n## Escaping Characters\n# Chapter 2: Using anchors and aliases for transcluded content\n## Examples\n## Credits","[{\"question\":\"What is YAML, and why is it designed for humans and machines?\",\"answer\":\"YAML is a human-readable data serialization standard for storing structured data with a hierarchy and minimal overhead. It uses text-based syntax that is readable by both humans and programs.\"},{\"question\":\"How are comments written in YAML?\",\"answer\":\"Comments start with # and continue to the end of the line. They must be separated from other tokens by whitespace, and # inside quoted scalars does not start comments.\"},{\"question\":\"How do anchors, aliases, and merge-keys help reuse YAML content?\",\"answer\":\"Anchors and aliases allow transcluded content and cross-referencing of rows in YAML tables. Merge-keys enable combining information from another YAML table via reusable structures.\"}]","YAML - Getting Started - Basic Tutorial | PDF",35,[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/a2d727ec438e3370aa43eade4c61f331.webp",983,1390,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/fd33a3f7a19c29e77eada8dba938dedb.webp",982,1389,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/d647a7ff5fee459b5f004db87424ff9d.webp",981,1387,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/344fc4fdceb9ac54320106c079ddb99b.webp",980,1386,{"list":162,"token":11},[163,169,175,181,187,193,199,205,212,219],{"doc_id":164,"doc_title":165,"file_type":136,"home_preview_img_url":166,"slug":167,"view_count":22,"category_name":29,"create_tm":168},759563,"YAML - Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044462285/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=N4rx1YY6JfiKNGD1LeqTaQUvyI4%3D","yaml-tutorial",1795887865,{"doc_id":170,"doc_title":171,"file_type":136,"home_preview_img_url":172,"slug":173,"view_count":22,"category_name":29,"create_tm":174},759560,"Introduction to YAML configuration - Network Startup Resource Center","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044200992/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=Bvqte0IO0%2F3hoOhgaWrNgeRIs%2FA%3D","introduction-to-yaml-configuration-network-startup-resource-center",1795887859,{"doc_id":176,"doc_title":177,"file_type":136,"home_preview_img_url":178,"slug":179,"view_count":95,"category_name":29,"create_tm":180},685635,"Lists, Tuples and Dictionaries - Lecture 10","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000169926/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=OIJa2ZmjSxPpz0f8ilUXEgfh0dY%3D","lists-tuples-and-dictionaries-lecture-10",1794016103,{"doc_id":182,"doc_title":183,"file_type":136,"home_preview_img_url":184,"slug":185,"view_count":104,"category_name":29,"create_tm":186},685771,"Compound Data - Lists, Tuples, Dictionaries - Unit IV - Learning Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000203726/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=jumpzko6zAQfaWcOKaCtvUrdyuY%3D","compound-data-lists-tuples-dictionaries-unit-iv-learning-notes",1794018217,{"doc_id":188,"doc_title":189,"file_type":136,"home_preview_img_url":190,"slug":191,"view_count":30,"category_name":29,"create_tm":192},701030,"Regular Expressions - Quick Reference Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011576998/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=O2BWQQYYQ1fRiMHPlU%2BbXqDDDMY%3D","regular-expressions-quick-reference-guide",1794522969,{"doc_id":194,"doc_title":195,"file_type":136,"home_preview_img_url":196,"slug":197,"view_count":104,"category_name":29,"create_tm":198},670917,"Python 3 Cheat Sheet - concise reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988704071/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=JSEZF0pTXr5DxbNIl1H1OIbBEI4%3D","python-3-cheat-sheet-concise-reference",1793572698,{"doc_id":200,"doc_title":201,"file_type":136,"home_preview_img_url":202,"slug":203,"view_count":33,"category_name":29,"create_tm":204},697998,"Markdown cheat sheet - guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010155625/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=j5y%2Fr7uiy0Eie2BYOXAn28CHnQQ%3D","markdown-cheat-sheet-guide",1794446932,{"doc_id":206,"doc_title":207,"file_type":136,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},423014,"THE JAVA LANGUAGE CHEAT SHEET - quick reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922611453/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=hBhDFe0HbqABHsr6Mz1DupN7ItM%3D","the-java-language-cheat-sheet-quick-reference",13,1790629749,{"doc_id":213,"doc_title":214,"file_type":136,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":29,"create_tm":218},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=5cgptXAbZOV73%2FcNnJ6iUuRmjc0%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",913,1785472614,{"doc_id":220,"doc_title":221,"file_type":136,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":29,"create_tm":225},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=thDcmQ2lD5NbRmDmCJgce65VEr8%3D","xnx-universal-transmitter-installation-manual",855,1776135954]