Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When to use YAML instead of JSON

Tags:

json

yaml

pyyaml

YAML appears to be more readable than a JSON formatted object, apart from readability what advantages or disadvantages does PyAML have instead of JSON? How should we make a decision between the two, note that I am not asking the difference between the two but recommendations on why and when to use one over the other?

like image 842
stackit Avatar asked Aug 23 '13 05:08

stackit


1 Answers

JSON is more formal format than YAML. IMHO:

    YAML is better for fast creation and understanding of simple configuration files of software modules;
    JSON is better for fast implementation and implementation of simple data transfering between software modules.
like image 70
Egg Head Avatar answered Sep 18 '22 13:09

Egg Head