Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
JavaScript and JSON Essentials

You're reading from   JavaScript and JSON Essentials If you fancy a less verbose data format than CSV or XML, then JSON could be for you. This tutorial will teach you about using JSON with JavaScript for effective local storage or Internet transfers.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781783286034
Length 120 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sai S Sriparasa Sai S Sriparasa
Author Profile Icon Sai S Sriparasa
Sai S Sriparasa
Arrow right icon
View More author details
Toc

Comparisons with YAML


YAML is another software language-agnostic data interchange format that is slowly gaining popularity. YAML is a recursive acronym for YAML Ain't Markup Language, and is commonly used to store metadata such as configurations, schemas, and properties. YAML is considered a human-readable data serialization standard and depends on white spaces, positioning, and simple characters for line terminators, similar to popular scripting languages such as Ruby and Python. YAML is particular about the spacing between the elements and is not tab friendly. Similar to JSON, YAML key/value pairs are separated by a colon. Similar to text formatting, hyphens are used to indicate list items, unlike JSON where the list items are placed in an array or a child object. Since YAML is software language-agnostic, we would need parsers to understand the contents in that file. Such parsers are available for most of the popular languages such as PHP, Python, C++, Ruby, and JavaScript. Let's build...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime