class_docstr: JSON format printer for protocol message.
docstr: Converts Value message according to Proto3 JSON Specification.
docstr_tok: ["Converts","Value","message","according","to","Proto3","JSON","Specification","."]
code: def _ValueMessageToJsonObject(self, message):
      """Converts Value message according to Proto3 JSON Specification."""
      which = message.WhichOneof("kind")
      # If the Value message is not set treat as null_value when serialize
      # to JSON. The parse back result will be different from original message.
      if which is None or which == "null_value":
          return None
      if which == "list_value":
          return self._ListValueMessageToJsonObject(message.list_value)
      if which == "struct_value":
          value = message.struct_value
      else:
          value = getattr(message, which)
      oneof_descriptor = message.DESCRIPTOR.fields_by_name[which]
      return self._FieldToJsonObject(oneof_descriptor, value)
  
imports: import base64
  from collections import OrderedDict
  import json
  import math
  from operator import methodcaller
  import re
  import sys
  from google.protobuf.internal import type_checkers
  from google.protobuf import descriptor
  from google.protobuf import symbol_database
label_desc: Use image node_id 8 for calling the _Printer obj's underlying member method code with example usage: obj._ValueMessageToJsonObject(message) and returns: self, None, self