debasishg/sjson — Issue #40: some helpers?
Author: axaluss
Created: 2012-02-06 19:18:49+00:00
State: open

Wouldnt it be nice to have a oblect some implicits for the writes method
to reduce the ammount of code to write?

Such that
def writes(p: Person): JsValue ={
import WriteUtil._
JsObject(("lastName",p.lastName),...)
}
instead of

JsObject(List((tojson("lastName").asInstanceOf[JsString], tojson(p.lastName)), ...))

So you get the option to reduce the ammount of code.