I am sending the JSON
object to server in a Java
standalone application .
JSON
object is :
{"dateFrom":"0001-01-01 12:00:00"
,"dateTo":"2014-03-29 04:34:49"
,"currency":"AUD"
,"requestStatus":null
,"dateTimeCreated":null
,"requestName":"ProjectedFundingRequest"
,"id":"af2e7ceb-c181-4a6b-a212-2867ea5cfded"
,"loginName":"mendiras"
,"securityToken":null
,"jsonString":null}
error : net.sf.json.JSONException: Error while setting property=requestStatus type class java.lang.String
Please let me know what could be the reason for the above error.
您正在JSON中传递一些空数据,请确保服务器接受此类型的输入,否则在服务器调用时会给出错误。
Set "requestStatus":null to "requestStatus":"",
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.