juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Bognar <james.bog...@salesforce.com>
Subject Combined serializers and parsers.
Date Sun, 04 Jun 2017 13:16:28 GMT
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