devicemap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner Keil <werner.k...@gmail.com>
Subject Re: JSON toString methods in data classes
Date Tue, 30 Dec 2014 15:37:42 GMT
Maybe we can abstract that a bit, e.g. a formatter/renderer that offers
multiple output options. Whatever is best as default could be used behind
toString() if JSON is best, why not, but it would be good to abstract data
from the output/representation.

Werner



On Tue, Dec 30, 2014 at 2:19 PM, Reza Naghibi <
reza.naghibi@yahoo.com.invalid> wrote:

> JSON is used in our servlet, spring, and console examples.
>
>
>
> <div>-------- Original message --------</div><div>From: Volkan Yazıcı
<
> volkan.yazici@gmail.com> </div><div>Date:12/30/2014  5:02 AM  (GMT-05:00)
> </div><div>To: dev@devicemap.apache.org </div><div>Cc:
> </div><div>Subject: JSON toString methods in data classes </div><div>
> </div>Hi,
>
> Is there a particular reason for why are we returning JSON formatted output
> from toString() methods of o.a.d.data.* classes? This convention is not
> followed by .NET/VB clients, if I am not mistaken.
>
> Best.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message