wjson.JsValueMapper$
See theJsValueMapper companion trait
object JsValueMapper
Best Practice for Case Class Json Mapping:
- make the case class
derives JsValueMapper
. - or declare a given JsValueMaper[T] for the case class
otherwise, every time you use API which using a JsValueMapper[T], a new JsValueMapper[T] will be
created via the JsValueMapper.given_JsValueMapper_T macro. this is an expensive
operation, every
macro expansion will generate an anonumous implementation class. so, there will be a lot of classes
in the compilation and increase the compile time, the output jar file will be large.
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- JsValueMapper.type
Members list
Concise view
Type members
Classlikes
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object given_Container_List.typeobject given_Container_Seq.typeobject given_Container_Set.typeobject given_Container_Vector.type
Attributes
- Graph
- Supertypes
- Self type
- given_Container_List.type
Attributes
- Graph
- Supertypes
- Self type
- given_Container_Seq.type
Attributes
- Graph
- Supertypes
- Self type
- given_Container_Set.type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Self type
- jmBigDecimal.type
Value members
Concrete methods
Givens
Givens
the T.derived has high priority than JsValMapper.given so if you define the derives, this macro will not be used.
the T.derived has high priority than JsValMapper.given so if you define the derives, this macro will not be used.