class_docstr: JSON format parser for protocol message.
docstr: Convert a JSON representation into Any message.
docstr_tok: ["Convert","a","JSON","representation","into","Any","message","."]
code: def _ConvertAnyMessage(self, value, message):
      """Convert a JSON representation into Any message."""
      if isinstance(value, dict) and not value:
          return
      try:
          type_url = value["@type"]
      except KeyError:
          raise ParseError("@type is missing when parsing any message.")
  
      sub_message = _CreateMessageFromTypeUrl(
          type_url, self.descriptor_pool
      )
      message_descriptor = sub_message.DESCRIPTOR
      full_name = message_descriptor.full_name
      if _IsWrapperMessage(message_descriptor):
          self._ConvertWrapperMessage(value["value"], sub_message)
      elif full_name in _WKTJSONMETHODS:
          methodcaller(
              _WKTJSONMETHODS[full_name][1], value["value"], sub_message
          )(self)
      else:
          del value["@type"]
          self._ConvertFieldValuePair(value, sub_message)
          value["@type"] = type_url
      # Sets Any message
      message.value = sub_message.SerializeToString()
      message.type_url = type_url
  
imports: import base64
  import json
  import math
  from operator import methodcaller
  import re
  import sys
  import six
  from google.protobuf.internal import type_checkers
  from google.protobuf import descriptor
  from google.protobuf import symbol_database
label_desc: Use image node_id 4 for calling the _Parser obj's underlying member method code with example usage: obj._ConvertAnyMessage(value, message) without return types