def _AnyMessageToJsonObject(message, including_default):
if not message.ListFields():<EOL><INDENT>return {}<EOL><DEDENT>js = {}<EOL>type_url = message.type_url<EOL>js['<STR_LIT>'] = type_url<EOL>sub_message = _CreateMessageFromTypeUrl(type_url)<EOL>sub_message.ParseFromString(message.value)<EOL>message_descriptor = sub_message.DESCRIPTOR<EOL>full_name = message_descriptor.full_name<EOL>if _IsWrapperMessage(message_descriptor):<EOL><INDENT>js['<STR_LIT:value>'] = _WrapperMessageToJsonObject(sub_message)<EOL>return js<EOL><DEDENT>if full_name in _WKTJSONMETHODS:<EOL><INDENT>js['<STR_LIT:value>'] = _WKTJSONMETHODS[full_name][<NUM_LIT:0>](sub_message, including_default)<EOL>return js<EOL><DEDENT>return _RegularMessageToJsonObject(sub_message, js, including_default)<EOL>
Converts Any message according to Proto3 JSON Specification.