users@jsonb-spec.java.net

[jsonb-spec users] [jsr367-experts] adapters API: too cpmplex?

From: Romain Manni-Bucau <rmannibucau_at_tomitribe.com>
Date: Sun, 6 Dec 2015 10:54:29 +0100

Hi guys,

reviewing the ED i realised the adapter API we have ATM is hard to use
in common case cause:

- you are forced to specify the type in unintuitive methods (Type or
Class + it is redundant with generics)
- it is too XML and not JSON friendly enough IMO. Do we need it for a
1.0 or a Type <-> String is enough? (other types have @JsonbXXX for
the parsing/serializing)

cant we just get: Adapter<Type> { Type from(String); String to(Type); }?

Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau