[Building Sakai] Returning JSON from createEntity

Aaron Zeckoski azeckoski at unicon.net
Wed Mar 13 05:22:32 PDT 2013


There's a JSON encoder in the EB reflect utils. I tried GSON and found
it did not handle things like maps correctly. It worked OK for POJOs
(unless they contained something like a map or an array).

-AZ


On Wed, Mar 13, 2013 at 5:28 AM, Adrian Fish <adrian.r.fish at gmail.com> wrote:
> Hi all,
>
> Does anybody know how to return JSON from createEntity in an entity
> provider? I know you can craft it; I mean by returning a POJO and having it
> serialized by the framework.
>
> Cheers,
> Adrian.
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"



-- 
Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile


More information about the sakai-dev mailing list