package formats
- Alphabetic
- By Inheritance
- formats
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait BasicFormats extends AnyRef
- class BigDecimalConvertor[T] extends AnyRef
-
trait
CamelCaseToDashes extends AnyRef
By default, S-Express uses the same field names in the wire format as the code.
By default, S-Express uses the same field names in the wire format as the code. But some protocols may prefer dashes with Scala code that uses camel case. This mix-in provides that behaviour.
-
trait
CollectionFormats extends AnyRef
Support for anything with a
CanBuildFrom. - trait DefaultSexpProtocol extends BasicFormats with StandardFormats with CollectionFormats with LegacyProductFormats
-
trait
FamilyFormats extends LowPriorityFamilyFormats
Automatically create product/coproduct marshallers (i.e.
Automatically create product/coproduct marshallers (i.e. families of sealed traits and case classes/objects) for s-express.
This uses s-expression data as the underlying format, as opposed to alists. Alists are arguably a better wire format because they allow for arbitrarily complex keys, but we're applying the Principle of Least Power.
Based on spray-json-shapeless, with the same caveats.
-
trait
LegacyFamilyFormats extends AnyRef
Helper methods for generating wrappers for types in a family, also known as "type hints".
Helper methods for generating wrappers for types in a family, also known as "type hints".
See https://gist.github.com/fommil/3a04661116c899056197
Will be replaced by a port of spray-json-shapeless.
- trait LegacyLowPriorityProductFormats extends AnyRef
- trait LegacyProductFormats extends LegacyLowPriorityProductFormats
- trait OptionAltFormat extends AnyRef
- trait SexpFormatHints extends AnyRef
- trait SexpFormats extends AnyRef
-
trait
StandardFormats extends ThreadLocalSupport
Formats for data types that are so popular that you'd expect them to "just work".
Formats for data types that are so popular that you'd expect them to "just work".
Most people might expect
Option[T]to outputnilforNoneand the instance forSome, but that doesn't round-trip for nested types (think ofOption[List[T]]). Instead we use a one-element list. If you want to have the non-round-trip behaviour, mix inOptionAltFormat. - trait SymbolAltFormat extends AnyRef
Value Members
- def deserializationError(got: Sexp): Nothing
- def serializationError(msg: String): Nothing
- object BigDecimalConvertor
- object BigIntConvertor
- object DefaultSexpProtocol extends DefaultSexpProtocol
-
object
SexpFormatUtils
Utility methods for creating custom
SexpFormats.