code: def dump_json(self, pretty=True):
          
          # Build template
          t = {}
          t['AWSTemplateFormatVersion'] = '2010-09-09'        
          if self.description is not None:
              t['Description'] = self.description
          self.elements.dump_to_template_obj(self, t)
  
          return _CustomJSONEncoder(indent=2 if pretty else None,
                                    sort_keys=False).encode(t)
docs: Return a string representation of this CloudFormation template.