As we go through several of my DevOps series we will be writing in Python, JSON, & YAML. This is my preferred free tool to used to convert YAML into JSON or Python if the situation calls for it.
Just copy & paste your YAML file into the left plane and at the bottom select your desired output.