wjson
package wjson
Type members
Classlikes
object JsValueMapper
Best Practice for Case Class Json Mapping:
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.
- Companion:
- class
object JsValueMapperMacro
Macro to generate a JsValueMapper for a given case class.
Macro to generate a JsValueMapper for a given case class.
object JsonParser
Fast, no-dependency parser for JSON as defined by http://tools.ietf.org/html/rfc4627.
Fast, no-dependency parser for JSON as defined by http://tools.ietf.org/html/rfc4627.
- Companion:
- class