Create a Dictionary in Python and write it to a JSON File.
Read a json file services.json
kept in this folder and print the service names of every cloud service provider.
output
aws : ec2
azure : VM
gcp : compute engine
Read YAML file using Python, file services.yaml
and read the contents to convert yaml to json
YAML is a human-readable data serialization language. It is often used for configuration files, but can also be used for data exchange between applications.
YAML was designed to be easy to read and write for humans, with a simple syntax that is similar to plain English. It uses indentation and whitespace to define structure, and supports a variety of data types, including strings, numbers, booleans, lists, and maps.
Thank you for reading!!
~Shreya Gupta
Great initiative by the #trainwithshubham community. Thank you Shubham Londhe
#devops #90daysofdevops #linux #python