You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2015/06/01 19:54:17 UTC

[jira] [Commented] (CXF-6422) How to serialize HashMaps using JSONProvider

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

Sergey Beryozkin commented on CXF-6422:
---------------------------------------

Hi - such questions need to be asked on the CXF users list. FYI: the default JSONProvider does not handle top level maps

> How to serialize HashMaps using JSONProvider
> --------------------------------------------
>
>                 Key: CXF-6422
>                 URL: https://issues.apache.org/jira/browse/CXF-6422
>             Project: CXF
>          Issue Type: Test
>            Reporter: sanmitra ijeri
>            Priority: Blocker
>
> I have a service which returns a HashMap, and I am using org.apache.cxf.jaxrs.provider.json.JSONProvider as my json provider, but I get error "No message body writer has been found for class java.util.Collections$EmptyMap, ContentType: application/json". How can I fix this ?



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