Searched refs:encode_json (Results 1 – 4 of 4) sorted by relevance
44 self.class.encode_json(self)
878 encoded_msg = Google::Protobuf.encode_json(m)1146 json_text = TestMessage.encode_json(m)1154 Foo.encode_json(Foo.new)1155 Foo.encode_json(Foo.new(bar: bar))1156 Foo.encode_json(Foo.new(bar: bar, baz: [baz1, baz2]))1165 assert MapMessage.encode_json(m) == expected1167 json = MapMessage.encode_json(m, :preserve_proto_fieldnames => true)1170 m2 = MapMessage.decode_json(MapMessage.encode_json(m))
63 def self.encode_json(msg) singletonMethod
52 puts MyTestMessage.encode_json(mymessage)