【发布时间】:2016-11-25 19:03:18
【问题描述】:
我想用 wso2 dss 将此对象保存到数据库中。但它显示日期格式有误。
Value type miss match, Expected value type - 'dateTime', but found - 'STRING'
示例帖子信息是这样的
{
"insert_subscribe_merchant_operation":
{
"customerrefid": 1,
"merchantrefid": "1",
"datetime": "2012-03-14T00:00:00+05:30",
"registereddevice":"1234567890",
"latlongregistered": "xczv",
"totalpoints":1000,
"redeemablepoints":800,
"expirydate": "2012-03-14T00:00:00+05:30",
"qrcode": "xvc",
"currentoffercount":10,
"schemerefid":1
}
}
但是当我尝试使用 xml 类型时,它工作正常
<insert_subscribe_merchant_operation>
<customerrefid>1</customerrefid>
<merchantrefid>"1"</merchantrefid>
<datetime>2012-03-14T00:00:00+05:30</datetime>
<registereddevice>"1234567890"</registereddevice>
<latlongregistered>"234"</latlongregistered>
<totalpoints>876</totalpoints>
<redeemablepoints>345</redeemablepoints>
<expirydate>2012-03-14T00:00:00+05:30</expirydate>
<qrcode>"?"</qrcode>
<currentoffercount>20</currentoffercount>
<schemerefid>1</schemerefid>
</insert_subscribe_merchant_operation>
请帮帮我!!!!
【问题讨论】:
标签: json apache wso2 axis2 wso2dss