code: def testAllFieldsToJson(self):
      message = json_format_proto3_pb2.TestMessage()
      text = (
          '{"int32Value": 20, '
          '"int64Value": "-20", '
          '"uint32Value": 3120987654,'
          '"uint64Value": "12345678900",'
          '"floatValue": "-Infinity",'
          '"doubleValue": 3.1415,'
          '"boolValue": true,'
          '"stringValue": "foo",'
          '"bytesValue": "YmFy",'
          '"messageValue": {"value": 10},'
          '"enumValue": "BAR",'
          '"repeatedInt32Value": [2147483647, -2147483648],'
          '"repeatedInt64Value": ["9007199254740992", "-9007199254740992"],'
          '"repeatedUint32Value": [268435455, 134217727],'
          '"repeatedUint64Value": ["9007199254740992", "9007199254740991"],'
          '"repeatedFloatValue": [0],'
          '"repeatedDoubleValue": [1e-15, "Infinity"],'
          '"repeatedBoolValue": [true, false],'
          '"repeatedStringValue": ["Few symbols!#$,;", "bar"],'
          '"repeatedBytesValue": ["Zm9v", "YmFy"],'
          '"repeatedMessageValue": [{"value": 10}, {"value": 11}],'
          '"repeatedEnumValue": ["FOO", "BAR"]'
          "}"
      )
      self.FillAllFields(message)
      self.assertEqual(
          json.loads(json_format.MessageToJson(message)),
          json.loads(text),
      )
      parsed_message = json_format_proto3_pb2.TestMessage()
      json_format.Parse(text, parsed_message)
      self.assertEqual(message, parsed_message)
  
imports: import json
  import math
  import sys
  from google.protobuf import any_pb2
  from google.protobuf import duration_pb2
  from google.protobuf import field_mask_pb2
  from google.protobuf import struct_pb2
  from google.protobuf import timestamp_pb2
  from google.protobuf import wrappers_pb2
  from google.protobuf.internal import well_known_types
  from google.protobuf import json_format
  from google.protobuf.util import json_format_proto3_pb2
label_desc: Use image node_id 3 for calling the JsonFormatTest obj's underlying member method code with example usage: obj.testAllFieldsToJson() without return types