cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose MarĂ­a Zaragoza <demablo...@gmail.com>
Subject setReadNullAsEmptyString in JSONProvider (Jettison 1.3.5) doesn't work
Date Thu, 03 Apr 2014 06:55:05 GMT
Hello:


I'm using CXF 2.7.10 + Jettison 1.3.5

When my service receives a JSON payload with a field like

{"field":null}

is always mapped  to empty string (in the JAXB object )

If I configure JSONProvider to

setReadNullAsEmptyString(false)

, the result is the same

I would like to map {"field":null}  to null value

What am I doing wrong ?


Regards

Mime
View raw message