juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject How to get a class to return standard JSON as the default
Date Fri, 09 Feb 2018 02:11:28 GMT
Hi All:

I want to return _standard_ JSON (see json.org) when no Accept header is
sent to my @RestResource class. I cannot seem to get that to work no matter
what. I get Juneau's non-standard single quote JSON.

Standard JSON uses double quotes, not single quotes.

If I specify 'application/json' in the Accept, then I do get standard JSON.

I cannot get this to work no matter what I try in my class's
@RestResource's serializer attribute.

I also want to support the normal set of serializers so users can specify
any Accept header value Juneau supports.

Thank you,
Gary

Mime
View raw message