Details
Description
the json output is not valid
see xml output for comparition
The output of json
{"org.ave7.core.model.forum.ForumAttachment": {
"id": 3,
"fileName": "!ave7_allo_mo2.rar",
"fileSize": 7859,
"userId": 12,
"uploadTime":
,
"suffix": "rar"
}}
the output xml
<org.ave7.core.model.forum.ForumAttachment>
<id>3</id>
<fileName>!ave7_allo_mo2.rar</fileName>
<fileSize>7859</fileSize>
<userId>12</userId>
<uploadTime class="sql-timestamp">2006-03-07 21:08:31.0</uploadTime>
<suffix>rar</suffix>
</org.ave7.core.model.forum.ForumAttachment>
When Using JettisonMappedXmlDriver
{"@class":"sql-timestamp","$":"2006-03-07 21:08:31.0"}the output is
{"org.ave7.core.model.forum.ForumAttachment":{"id":3,"fileName":"!ave7_allo_mo2.rar","fileSize":7859,"userId":12,"uploadTime":
,"suffix":"rar"}}