[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-759564-105":59,"doc-detail-759564-en":129,"doc-similar-759564":160},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":122,"head_meta":124,"extra_data":126,"updated_unix":128},105,"en","introduction-to-yaml","Introduction to YAML","","Introduction to YAML explains YAML as a human-readable data serialization language designed for everyday tasks and for interoperability with modern programming languages. It contrasts YAML with XML through concrete examples, then demonstrates lists, countdowns, type inference, quotation-based type control, and associative arrays. The guide continues with scalar concepts, Unicode handling, escape behaviors, and shows how YAML parsers interpret strings, integers, floating-point formats, special values, and dates.",{"@graph":69,"@context":121},[70,84,104],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/introduction-to-yaml/759564/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":98,"encodingFormat":97,"isAccessibleForFree":99,"interactionStatistic":100},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/introduction-to-yaml/759564.png","ImageObject",300,407,{"name":92,"@type":93},"Kurz","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28",true,{"@type":101,"interactionType":102,"userInteractionCount":8},"InteractionCounter",{"@type":103},"ViewAction",{"@type":105,"mainEntity":106},"FAQPage",[107,113,117],{"name":108,"@type":109,"acceptedAnswer":110},"What is YAML and what does its name mean?","Question",{"text":111,"@type":112},"YAML stands for YAML Ain't Markup Language. It is a data serialization language created to be human-readable while working well with modern programming languages.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"How does YAML distinguish data types like strings and integers?",{"text":116,"@type":112},"YAML parses elements according to natural syntax: for example, 3 is recognized as an integer, while other values that cannot convert to recognized numeric types remain strings. Quotation marks can force a value to be treated as a string.",{"name":118,"@type":109,"acceptedAnswer":119},"What are YAML scalars and what do they include?",{"text":120,"@type":112},"Scalars are YAML types that are not collections. The text highlights character strings and shows how Unicode and line breaks are handled, along with escape behavior for double and single quotes.","https://schema.org",{"og:url":83,"og:type":123,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":125,"canonical":83},"index,follow",{"doc_id":127,"site_id":62},759564,1795887868,{"code":4,"msg":5,"data":130},{"doc_id":127,"user_id":131,"nickname":92,"user_avatar":132,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":138,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":128,"read_time":26,"preview_page_count":19,"preview_urls":143},2336478945635,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Introduction to YAML  \nMichel Casabianca  \n[casa@sweetohm.net](casa@sweetohm.net)  \nThis article is an introduction to YAML, a language to write structured data, as XML would for example, but in a more natural and less verbose way. We will see a description of the YAML syntax as well as examples in Java, Python and Go.  \nUne version en français est disponible ici.  \nA ZIP archive with source code for examples can be found at:  \n[http://www.sweetohm.net/arc/introduction-yaml.zip](http://www.sweetohm.net/arc/introduction-yaml.zip).  \nWhat is YAML?  \nThe name YAML means YAML Ain't Markup Language. If this immediately distances XML, it does not tell us what YAML is. YAML is, according to its specification, a data serialization language designed to be human-readable and working well with modern programming languages for everyday tasks.  \nSpecifically, we could note the list of ingredients for a breakfast as follows:  \n-croissants  \n-chocolate breads  \n-ham  \n-eggs  \nThis is a valid YAML file that represents a list of strings. To be convinced, we can write the following Python script that parses the file, whose name is passed on the command line, and displays the result:  \n\\#!/usr/bin/env python  \n\\# encoding: UTF-8  \nimport sys  \nimport yaml  \nprint yaml .load(open(sys .argv[1]))  \nThis script will produce the following result:  \n['croissants', 'chocolate breads', 'ham', 'eggs']  \n03/02/2018 Introduction to YAML 1  \nWhich means that the result of this parsing is a Python list containing the appropriate strings! The parser is therefore able to render natural data structures of the language used for parsing.  \nNow let's write a countdown:  \n- 3  \n- 2  \n- 1  \n- 0  \nWe obtain the following result:  \n[3, 2, 1, 0]  \nThis is always a list, but the parser has recognized each element as an integer and not a simple string as in the previous example. The parser is therefore able to distinguish data types such as strings and integers, floating-point numbers, and dates. To do this, we use a natural syntax: 3 is recognized asan integer while ascending is not because it cannot be converted to an integer, a floating point number, or any other type recognized by YAML. To force YAML to interpret 3 as a string, you can surround it with quotation marks.  \nYAML can also recognize associative arrays, so we could note a breakfast order as follows:  \ncroissants: 30  \nchocolate breads: 30  \nham: 0  \neggs: 0  \nWhich will be loaded in the following way:  \n'chocolate breads': 30, 'croissants': 30, 'ham': 0, 'eggs': 0}  \nBy combining the basic data types in YAML-recognized collections, almost any data structure can be represented. On the other hand, the textual representation of these data is very legible and almost natural.  \nIt is also possible to perform the reverse operation, namely to serialize data structures in memory as text. In the following example, we write on standard output a Python Dictionary:  \n\\#!/usr/bin/env python  \n\\# encoding: UTF-8 import yaml  \nrecipe = {  \n'name': 'sushi',  \n'ingredients': ['rice', 'vinegar', 'sugar', 'salt', 'tuna', 'salmon'],  \n03/02/2018 Introduction to YAML 2  \n'cooking time': 10,  \n'difficulty': 'difficult'}  \nprint yaml .dump(recipe)  \nWhich will produce the following output:  \ndifficulty: difficult  \ningredients: [rice, vinegar, sugar, salt, tuna, salmon]  \nname: sushi  \ncooking time: 10  \nBasic syntax  \nAfter this brief introduction, here is a more exhaustive description of the YAML syntax.  \nScalar  \nScalars are the set of YAML types that are not collections (list or associative array). They can be represented by a list of Unicode characters. Here is a list of scalars recognized by YAML parsers:  \nString of characters  \nHere is an example:  \n- String- \"3\"  \n- String on a single line  \n- \"Double quotation marks\\t\"  \n- 'Single quotation marks\\t'  \nWhich is parsed in the following way:  \n[u'String', '3', u'String on a single line',  \n'Double quotation marks\\t', 'Simple quotation marks\\\\t']  \nThe result of this pars","cbCairUkQwnywLdg","https://ap.wps.com/l/cbCairUkQwnywLdg","pdf",336261,24,"English","# Introduction\n## What is YAML?\n## Basic syntax\n### Scalar\n### Integers\n### Floating point numbers\n### Dates","[{\"question\":\"What is YAML and what does its name mean?\",\"answer\":\"YAML stands for YAML Ain't Markup Language. It is a data serialization language created to be human-readable while working well with modern programming languages.\"},{\"question\":\"How does YAML distinguish data types like strings and integers?\",\"answer\":\"YAML parses elements according to natural syntax: for example, 3 is recognized as an integer, while other values that cannot convert to recognized numeric types remain strings. Quotation marks can force a value to be treated as a string.\"},{\"question\":\"What are YAML scalars and what do they include?\",\"answer\":\"Scalars are YAML types that are not collections. The text highlights character strings and shows how Unicode and line breaks are handled, along with escape behavior for double and single quotes.\"}]","Introduction to YAML | PDF",[144,148,152,156],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/3812f8850391ef40ca0c477947980c3f.webp",983,1390,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/c868862933259849f50ec63cec27e7f6.webp",982,1389,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/138161f47a6a68c233ea3c35566d7000.webp",981,1387,{"page_no":19,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/c8ef7e5e27185db57a210b415eab0d6c.webp",980,1386,{"list":161,"token":66},[162,168,174,180,186,193,200,207,214,221],{"doc_id":163,"doc_title":164,"file_type":136,"home_preview_img_url":165,"slug":166,"view_count":8,"category_name":30,"create_tm":167},759559,"YAML Ain’t Markup Language (YAML™) - Working Draft Version 1.1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044200985/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=zsHSQUQyPh4if1bjLkzI6YN7tj0%3D","yaml-aint-markup-language-yaml-working-draft-version-11",1795887858,{"doc_id":169,"doc_title":170,"file_type":136,"home_preview_img_url":171,"slug":172,"view_count":8,"category_name":30,"create_tm":173},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=1796111219&Signature=t9rkVP%2BXRmlrKak%2B5kDZ5fIHEi4%3D","introduction-to-yaml-configuration-network-startup-resource-center",1795887859,{"doc_id":175,"doc_title":176,"file_type":136,"home_preview_img_url":177,"slug":178,"view_count":19,"category_name":30,"create_tm":179},685680,"ECMA-404 - The JSON Data Interchange Syntax - 2nd Edition - December 2017","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000176288/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=1QIFH0EMqfdAmv%2B4jFM%2BQiVyR8Y%3D","ecma-404-the-json-data-interchange-syntax-2nd-edition-december-2017",1794016568,{"doc_id":181,"doc_title":182,"file_type":136,"home_preview_img_url":183,"slug":184,"view_count":24,"category_name":30,"create_tm":185},685805,"Numpy - Array - Chapter 11 - Informatics Practices","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000213217/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=ZePYNEr%2F%2FoI9uynvWf%2FzRxJuFx8%3D","numpy-array-chapter-11-informatics-practices",1794018711,{"doc_id":187,"doc_title":188,"file_type":136,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":30,"create_tm":192},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=1796111219&Signature=N1MQ0tY9wVsanPFOHetXaEFRaqU%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",913,1785472614,{"doc_id":194,"doc_title":195,"file_type":136,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":30,"create_tm":199},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=1796111219&Signature=QKmhbtOhkHM3mOue4h9OdgDZJb0%3D","xnx-universal-transmitter-installation-manual",854,1776135954,{"doc_id":201,"doc_title":202,"file_type":136,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":30,"create_tm":206},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=pnnGqBGxeShKmeadEpdM1YrGU1A%3D","the-candlestick-trading-bible-trading-guide",804,1789767270,{"doc_id":208,"doc_title":209,"file_type":136,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":30,"create_tm":213},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=wyYOBvkSSVwArMjl7oWZLL7P9dA%3D","free-fire-proxy-server",565,1776135932,{"doc_id":215,"doc_title":216,"file_type":136,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":30,"create_tm":220},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=mGa64PrYQ0qQPPoKhpE3fMzTUhA%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",498,1786012506,{"doc_id":222,"doc_title":223,"file_type":136,"home_preview_img_url":224,"slug":225,"view_count":226,"category_name":30,"create_tm":227},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=qhucS4BEnu7MeEoMthFPwwAjb2I%3D","tiktok-content-tricks-from-0-to-fyp",489,1776338393]