9

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?

stackit
  • 2,928
  • 8
  • 31
  • 60
  • 2
    Here's a most acceptable answer to that question in this forum: http://stackoverflow.com/questions/1726802/what-is-the-difference-between-yaml-and-json-when-to-prefer-one-over-the-other?answertab=votes#tab-top – Vivek Aug 23 '13 at 08:16
  • Next time please looks out for such answered questions, this could earn you some negative points here...!!! – Vivek Aug 23 '13 at 08:17
  • 3
    I don't see a comparable question. Others ask what the technical difference is, not when one is more suitable than the other in practice. – Sridhar Sarnobat Apr 13 '18 at 22:38

1 Answers1

6

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.
Egg Head
  • 369
  • 3
  • 4