goog.json.SerializerProvided Bygoog.json.SerializerAll Known Direct Subclassesgoog.proto.SerializerClass that is used to serialize JSON objects to a string. new Serializer( opt_replacer )Parametersopt_replacer(function(this: Object, string, *): *|null)=Replacer. VIEW SOURCEInstance Methodsexpand_morethis.serialize( object ) → stringSerializes an object or a value to a JSON string. Parametersobject*The object to serialize. ReturnsstringA JSON string representation of the input. ThrowsError if there are loops in the object graph. VIEW SOURCEexpand_morethis.serializeArray( arr, sb ) → voidSerializes an array to a JSON string Parametersarr(Array<string>|null)The array to serialize. sb(Array<string>|null)Array used as a string builder. VIEW SOURCEexpand_morethis.serializeInternal( object, sb ) → voidSerializes a generic value to a JSON string Parametersobject*The object to serialize. sb(Array<string>|null)Array used as a string builder. ThrowsError if there are loops in the object graph. VIEW SOURCE