StringMapSerializer

fm.serializer.StringMapSerializer
final class StringMapSerializer[V, Col <: IterableOnce[(String, V)]](implicit elemSerializer: Serializer[(String, V)], valueSerializer: Serializer[V]) extends Serializer[Col]

A Serializer for a Map[String,V] (or rather TraversableOnce[(String,V)]) that allows us to output a JSON Object for a Map[String,V] instead of an Array[(String,V)]. If the underlying Output doesn't support this style (e.g. Protobuf) then the TraversableOnceSerializer is used instead.

Attributes

Graph
Supertypes
trait Serializer[Col]
trait FieldSerializer[Col]
trait NestedSerializer[Col]
trait RawSerializer[Col]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

final def serializeField(output: FieldOutput, number: Int, name: String, col: Col): Unit
final def serializeNested(output: NestedOutput, col: Col): Unit
final def serializeRaw(output: RawOutput, col: Col): Unit