juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <johndam...@apache.org>
Subject Re: Combined serializers and parsers.
Date Sun, 04 Jun 2017 13:20:25 GMT
You wouldn't have to drop the existing ones to do this right? They could
stay in place and yet still have the new combined version.

On Sun, Jun 4, 2017 at 9:16 AM James Bognar <james.bognar@salesforce.com>
wrote:

> Wacky idea here...and something that would have to wait for a major release
> (e.g. 7?)
>
> Combine the serializers and parsers together into the same class.
>
> Current....
> Bean b;
> String json = JsonSerializer.DEFAULT.serialize(b);
> b = JsonParser.DEFAULT.parse(json);
>
> Better?....
> Bean b;
> String json = Json.DEFAULT.serialize(b);
> b = Json.DEFAULT.parse(json);
>
> Builders would also be combined.
>
> --
> James Bognar
>

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