[
https://issues.apache.org/jira/browse/WW-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15348372#comment-15348372
]
Fred Ge commented on WW-4650:
-----------------------------
When setting the json interceptor only on the Action/method with json in
request, the accept parameter is initialized with "application/json,
text/plain, */*" so the json object is not deserialized, I had to override
accept with "application/json" like Lukasz said, and it worked. The patch from
Victor Sosa should work.
The counterpart is that I have to put json interceptor only on specific
action/method as ContentType is no longer used.
Thanks for your support
> Json deserialization does not work in 2.5.1
> -------------------------------------------
>
> Key: WW-4650
> URL: https://issues.apache.org/jira/browse/WW-4650
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - JSON
> Affects Versions: 2.5.1
> Reporter: Fred Ge
> Fix For: 2.5.2
>
>
> A json posted from Angular request is not deserialized anymore. It worked in
> 2.5.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)