[aerogear-dev] aerogear-controller support for @JsonView

Daniel Bevenius daniel.bevenius at gmail.com
Fri Apr 19 00:06:37 EDT 2013


Hi,

>is it possible or is it planned to configure the routes with @JsonView's
or something similar?
There is nothing planned for this at the moment but you are welcome to add
a feature request[1] for it of course.

>How can I extend the "JsonResponder" and use it in my routes?
You either extends the JsonResponder or implement you own Responder with
the functionality that you require, like configuring the ObjectMapper for
your use case. Please refer to the following section of the user guide:
http://aerogear.org/docs/guides/aerogear-controller/mediatypes.html

Regards,

/Dan

[1] https://issues.jboss.org/browse/AEROGEAR


On 18 April 2013 16:47, tomlux <tom at schuller.lu> wrote:

> Hy,
> is it possible or is it planned to configure the routes with @JsonView's or
> something similar?
>  http://wiki.fasterxml.com/JacksonJsonViews
>
> Currently I'm working with @JsonIgnore, but I have some cases where the
> data
> should be serialized only for a subset of the different routes.
>
> The best way would be that I could assign for each route a different
> @JsonView.
>
> Thanks,
>  Tom
>
>
>
>
> --
> View this message in context:
> http://aerogear-dev.1069024.n5.nabble.com/aerogear-controller-support-for-JsonView-tp2336.html
> Sent from the aerogear-dev mailing list archive at Nabble.com.
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130419/3350e7fb/attachment.html 


More information about the aerogear-dev mailing list