title: Converting Yaml cloudformation template to Json
body: <p>I can't figure out how do I convert the below section of my yaml cloudformation template to a json template. Can anyone please guide me here.</p>
  
  <pre><code>Tags: 
  - Key: Name 
    Value: !Join 
          - '' 
          - - !FindInMap  
                - BusinessUnitCode 
                - !Ref BusinessUnit 
                - Code 
            - A 
            - !FindInMap  
                - AWSRegionCode 
                - !Ref 'AWS::Region' 
                - Code 
            - '-' 
            - !FindInMap  
                - AccountsCode 
                - !Ref Account 
                - Code 
            - '-' 
            - !FindInMap  
                - ProdLevelCode 
                - !Ref ProductionLevel 
                - Code 
            - '-' 
            - !FindInMap  
                - ServerFunctionCode 
                - !Ref ServerFunction 
                - Code 
            - '-' 
            - !FindInMap  
                - SGFunctionCode 
                - !Ref SecurityGroupFunction 
                - Code 
            - '-'                   
            - !Ref IncrementCode
  </code></pre>
  
  <p>Though I know there is no need for this conversion as both json and yaml works the same in cloudformation, have to do this as per a mandate.</p>