[ 
https://issues.apache.org/jira/browse/SYNCOPE-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718361#comment-14718361
 ] 

Francesco Chicchiriccò edited comment on SYNCOPE-688 at 8/28/15 11:17 AM:
--------------------------------------------------------------------------

REST endpoint: {{/syncope/rest/}}
header {{"Accept: application/json"}}

{{tomcat.json}} is JSON string returned when Syncope runs with Tomcat 8.
{{glassfish.json}} is JSON string returned when Syncope runs with Glassfish 4.1

The referred object is 
[SyncopeTO|https://github.com/apache/syncope/blob/master/common/lib/src/main/java/org/apache/syncope/common/lib/to/SyncopeTO.java]


was (Author: ilgrosso):
REST endpoint: {{/syncope/rest/}}
header {{"Accept: application/json"}}

{{tomcat.json}} is JSON string returned when Syncope runs with Tomcat 8.
{{glassfish.json}} is JSON string returned when Syncope runs with Glassfish 4.1

> JSON (de)serialization not working in Glassfish 4.1
> ---------------------------------------------------
>
>                 Key: SYNCOPE-688
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-688
>             Project: Syncope
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.0
>         Environment: Glassfish 4.1
>            Reporter: Francesco Chicchiriccò
>             Fix For: 2.0.0
>
>         Attachments: glassfish.json, tomcat.json
>
>
> With Glassfish 4.1, it seems that Jackson gives priority to JAXB annotations 
> over Jackson's; as a result, the JSON objects serialized via REST are not 
> formed as the client deserializer expects.
> See attached files for reference.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to