DEV Community

Discussion on: YAML Tutorial | Using YAML With Python | PyYAML

Collapse
 
chandrika56 profile image
Jaya chandrika reddy

Which do you think is more used in the Industry? YAML vs JSON

Collapse
 
nicolasini profile image
Nico S___

JSON is used for anything API related. Any payload of data transferred between servers, clients, or any other API is very likely to be JSON, unless its XML
YAML is generally used for configuration purposes, although JSON is quite popular for that purpose too.

Collapse
 
developertharun profile image
Tharun Shiv

Yes, that's on point. Thanks 🙂

Collapse
 
developertharun profile image
Tharun Shiv

As far as I've noticed, JSON is used in places where the data transfer takes place , and the data is parsed, and the user doesn't manually deal with it.
YAML files are used when user deals with providing inputs or configuration.

See the main advantage of YAML is readability. So the user is less prone to errors like missing a comma or missing a curly bracket. 🙂

Collapse
 
reactifystudio profile image
Reactify

JSON. But for DevOps you will need yaml