--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
--
Guillaume Bort, http://guillaume.bort.fr
For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com
I used this method today, by defining
object PlayParameterNameReader extends ParameterNameReader {
def lookupParameterNames(constructor: Constructor[_]) = {
Set(LocalvariablesNamesEnhancer.lookupParameterNames(constructor).toArray(new
Array[String](1)) : _*)
}
}
and then using as formatter
implicit val formats = new DefaultFormats {
override val parameterNameReader = PlayParameterNameReader
}
and finally by serializing with
return Json(write(user))
it's nice and works and all.
Is there any progress on getting this into play-scala so we have it
for free out of the box?
Thanks!
Manuel
Neat! Guillaume, Sadek, will we see that one in play-scala soon? Does
seem to be a good fit with the roadmap :)