it was introduced in 2.1-RC1 and lots of people already use it so I prefer
deprecating it.
I've had already a few comments about it (not bad, just remarking it :D)
Maybe in final, we could simply remove read/write/formatOpt

Pascal



On Wed, Jan 9, 2013 at 8:23 PM, Julien Richard-Foy <notifications@github.com
> wrote:

> In framework/src/play/src/main/scala/play/api/libs/json/JsPath.scala:
>
> > -  def write[T](implicit w: Writes[T]) = Writes.at[T](this)(w)
> > -  def writeOpt[T](implicit w: Writes[T]) = Writes.optional[T](this)(w)
> > -  def lazyWrite[T](w: => Writes[T]) = OWrites( (t:T) => Writes.at[T](this)(w).writes(t) )
> > -  def write[T](t: T)(implicit w: Writes[T]) = Writes.pure(this, t)
> > -
> > -  def rw[T](implicit r:Reads[T], w:Writes[T]) = Format.at[T](this)(Format(r, w))
> > -
> > -  def format[T](implicit f: Format[T]) = Format.at[T](this)(f)
> > +  /** Writes a T at given JsPath */
> > +  def write[T](implicit w: Writes[T]): OWrites[T] = Writes.at[T](this)(w)
> > +
> > +  /** Writes a Option[T] at given JsPath
> > +    * If None => doesn't write the field
> > +    * else => writes the field using implicit Writes[T]
> > +    */
> > +  @deprecated("use writeNullable[T] instead (in parallel with readNullable)", since = "2.1-RC2")
>
> Same here (about the deprecation).
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/playframework/Play20/pull/662/files#r2594913>.
>
>