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.
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. 🙂
Which do you think is more used in the Industry? YAML vs JSON
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.
Yes, that's on point. Thanks 🙂
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. 🙂
JSON. But for DevOps you will need yaml