In this Article (Click to skip to that topic):
YAML: What is it?
Why do you need YAML?
How to use PyYAML to use YAML Files?
Advantages of using Y...
For further actions, you may consider blocking this person and/or reporting abuse
Which do you think is more used in the Industry? YAML vs JSON
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 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 🙂
JSON. But for DevOps you will need yaml
I absolutely hate YAML. I thought it was only going to be like that only when I started using it, that it would get better with time, but it really hasn't.
My personal opinion:
I agree with you in the points you dislike. They are definitely an issue.
However, it is more readable than JSON for non-developers. And sometimes that is more important.
Yes Nico. You just give them a template and they will easily fill it in, in case of YAML.
Thanks for sharing your perspective Sebastijan. 🙂
Me too.
I find it's indentation poor. Curly braces are works for me. I can easily follow the nesting 💯
Excellent explanation of how YAML is used! Your example makes everything very clear.
Thanks
Thanks a lot Bruce! This motivates me to write more... 🙂
I don't think it's readable than JSON.
I find it hard to follow. Due to lack of curly braces. I dislike indentation poor when nesting.