proto.Serializer Extends goog.json.Serializer
Object that can serialize objects or values to a protocol buffer string.

Inheritance

Constructor

goog.proto.Serializer()

Instance Methods

Public Protected Private
serializeArray(arrsb)
Serializes an array to a protocol buffer string. This overrides the JSON method to output empty slots when the value is null or undefined.
Arguments:
arr : Array
The array to serialize.
sb : Array
Array used as a string builder.
code »
replacer_()
No description.
code »
serialize(object) string
Serializes an object or a value to a JSON string.
Arguments:
object : *
The object to serialize.
Returns: string  A JSON string representation of the input.
code »
serializeArray(arrsb)
Serializes an array to a JSON string
Arguments:
arr : Array
The array to serialize.
sb : Array
Array used as a string builder.
code »
serializeInternal(objectsb)
Serializes a generic value to a JSON string
Arguments:
object : *
The object to serialize.
sb : Array
Array used as a string builder.
code »
serializeNumber_(nsb)
Serializes a number to a JSON string
Arguments:
n : number
The number to serialize.
sb : Array
Array used as a string builder.
code »
serializeObject_(objsb)
Serializes an object to a JSON string
Arguments:
obj : Object
The object to serialize.
sb : Array
Array used as a string builder.
code »
serializeString_(ssb)
Serializes a string to a JSON string
Arguments:
s : string
The string to serialize.
sb : Array
Array used as a string builder.
code »

Instance Properties

constructor :
No description.
Code »

Static Properties

goog.proto.Serializer.superClass_ :
No description.
Code »

Package proto

Package Reference