Convert Swagger YAML api definition to JSON