Introduction to YAML
Mastering YAML Data Serialization Format
About the Book
Book description
Introduction
YAML stands for YAML Ain't Markup Language. It is a very popular data serialization format for storing configuration data or exchanging data between people and computers. It is more human-readable and concise than XML or JSON. It has now become a key technology for creating complex configurations in various modern technologies like automation, testing, containerization, cloud (AWS, Azure, or GCP) deployment, DevOps, etc.
Why Learn YAML
Learning about YAML would be very beneficial for today's software engineers. Below is a list of some of the popular software tools and frameworks that make extensive use of the YAML data format.
- DevOps - CircleCI, Travis CI, Azure DevOps, Jenkins X
- Frameworks: Spring Boot
- Automation: Chef Automate, Ansible
- Container: Docker, Kubernetes
- Documentation: Swagger,
- and many more ...
Who this book is for
If you looking to build expertise in using YAML for your projects? Then this book is right for you.
This book is for developers of all skill levels who wish to stay up to date with YAML. This book is intended for Software Engineers, Full Stack Web Developers, DevOps Engineers, Software Architects, Managers, and anyone who wants to learn about YAML.
What topics are covered in this book
The main objective of this book is to give you a foundation for using YAML. To do that, it takes you on a journey where we start with basic concepts of data serialization and then gradually explore more advanced topics like YAML syntax, anchors, etc.
The following topics will be covered:
You will also get to know about various parsers and emitters available in the modern programming languages and a list of various tools which are leveraging YAML technology.
- Basic concepts and syntax of YAML, including how to use indentation in YAML documents.
- YAML vs JSON and XML and why you should use YAML?
- Using simple and complex data types like list and a key-value pair (or mapping)
- Using advanced features like anchors in a YAML
What you will learn
This book will cover everything you need to know about YAML. It will go through the syntax of this language in detail as per the latest YAML 1.3 Specification and also cover the fundamental principles behind it and how it works. It will also explore several YAML features that include:
- scalar data types (i.e., strings and numbers)
- containers (a list of elements)
- rich data types (i.e., dates and times)
- anchors (a way to create links in YAML documents)
After reading this book, you will be able to:
- Understand what YAML is and how it works
- Know the differences between XML, JSON, and YAML
- Learn the basics of the YAML syntax
- Use YAML in your projects to serialize and deserialize data
- Know what tools are available to work with YAM
- Learn how to use anchors in a YAML document
About the Author
Hi! Tarun Telang is a software engineering leader with over 17 years of experience in the software industry. I’ve worked with some of the world’s most renowned software development firms like Microsoft, Oracle, BlackBerry, and SAP. I am also having thorough experience working with projects using agile methodologies (including user-centric & mobile-first design) and managing cross-functional multi-site teams.
For more than 15 years I have been presenting at conferences related to software technology, actively writing technical articles and blogs to help everyone improve their understanding of key concepts of the software technology.
I hope you will enjoy reading this book as much as I enjoyed writing it. If you have any feedback, feel free to share
Happy YAML'ing!
Goals
After reading this book, you will be able to:
- Understand what YAML is and how it works
- Know the differences between XML, JSON, and YAML
- Learn the basics of the YAML syntax
- Use YAML in your projects to serialize and deserialize data
- Know what tools are available to work with YAM
- Learn how to use anchors in a YAML document

eBook Preview
Author Details

Tarun Telang
Tarun Telang is a hands-on technologist with extensive experience in the design and implementation of multi-tiered, highly scalable software applications. He has been part of several well-known companies such as Microsoft, Oracle, Polycom, and SAP. He has over 16 years of expertise in architecting and developing business applications.
He began his career as an enterprise Java developer at SAP, where he has developed distributed application software for big firms. He got his start with Enterprise Session Beans and Message Driven Beans, as well as instrumenting enterprise applications' configuration and management using the Java Management Extensions (JMX) technology.
He quickly mastered various enterprise technologies like Enterprise Beans, Java Management Extensions, Servlets, and Server Pages technologies, and in his first year as a developer, he became Sun Certified Programmer for the Java Platform, Standard Edition 6; and SAP Certified Development Consultant for the SAP NetWeaver Java Web Application Server (which was a Java EE 5 compliant application server).
He also gained expertise in XML technologies like XSLT and XSD, using which he developed several solutions using Session Beans and Message Driven Beans to handle message-oriented communications across numerous systems. In 2007, Tarun was named SAP Mentor and Community Influencer for his articles and blog posts on emerging technologies and promoting innovative solutions in the SAP Developer Community. He frequently writes articles on Java and related technologies. Tarun has also authored multiple online courses including a best-selling course on YAML data serialization language.
He has presented technical lectures at several developer conferences, including SAP TechEd and the Great Indian Developer Summit. It has been more than 15 years since he has been presenting at conferences about software technology, actively publishing technical papers and blogs to assist everyone in better grasp the fundamentals of software technology. Tarun is very passionate about software technology and has also developed cloud-based video conferencing applications using a microservices architecture with the Spring framework. He also has experience working with Persistence APIs and Hazelcast framework for building REST-based services.
Later, he has led the development of many end-to-end cloud-based solutions using various architectural patterns including Microservices and Service Oriented Architecture. Tarun has gained expertise in Web, Mobile, and Cloud technologies. He is also thorough applied agile methodologies including user-centric & mobile-first design for managing projects with cross-functional teams located in multiple geographies.
Having previously worked and lived in Waterloo(Ontario), Canada, and Heidelberg, Germany. Tarun is currently based out in Hyderabad, India. You can follow him over LinkedIn or Twitter (@taruntelang).
Our students work
with the Best


































Related eBooks
Annual Membership
Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses
Subscribe now
Online Certifications
Master prominent technologies at full length and become a valued certified professional.
Explore Now