users@jsonb-spec.java.net

[jsonb-spec users] [jsr367-experts] Re: Re: Re: [30-GenericTypeSupport] Proposal

From: Inderjeet Singh <inder_at_alumni.stanford.edu>
Date: Fri, 13 Mar 2015 11:49:49 -0700

On Fri, Mar 13, 2015 at 10:57 AM, Romain MB <rmannibucau_at_tomitribe.com>
wrote:

>
> > Map may have the same issue but in practice I don't see APIs using Map as
> > the return type. Instead people use a regular class. OTOH, Lists are
> common
> > because often REST APIs return collections of resources.
> >
> >
>
> Well saw it regularly on cloud solutions and devoxx API at least.
>

If I was a client developer for those APIs, I would use a Class instead of
a Map to convert the API JSON response.
Unless the API is too crazy (where the field names keep changing at random,
or are just too numerous), this remains a viable option that we will tell
the developers to use.