def visit_Metadata(self, metadata, *args, **kwargs):
result = OrderedDict()<EOL>put_scalar = lambda name, json_name=None: self.optional_attribute_scalar(result, metadata, name, json_name)<EOL>put_list = lambda name, json_name=None: self.optional_attribute_list(result, metadata, name, json_name)<EOL>put_scalar('<STR_LIT:name>')<EOL>put_scalar('<STR_LIT:description>')<EOL>put_scalar('<STR_LIT>')<EOL>put_scalar('<STR_LIT>')<EOL>put_list('<STR_LIT>')<EOL>put_scalar('<STR_LIT:time>')<EOL>put_scalar('<STR_LIT>')<EOL>put_scalar('<STR_LIT>')<EOL>put_list('<STR_LIT>')<EOL>return result<EOL>
Render GPX Metadata as a single JSON structure.