The goog.proto.Serializer Class

goog.proto.Serializer
> goog.json.Serializer

goog.proto.Serializer()

Object that can serialize objects or values to a protocol buffer string.

.serialize(object)

Inherited from goog.json.Serializer .

Serializes an object or a value to a JSON string.

object {*}
The object to serialize.
returns {string}
A JSON string representation of the input.
@throws
Error if there are loops in the object graph.