今天開發的時候,寫代碼的時候出現了這個json
Could not write content: Object is null (through reference chain: net.sf.json.JSONObject["rows"]->net.sf.json.JSONArray[5]->net.sf.json.JSONObject["cell"]->net.sf.json.JSONArray[4]->net.sf.json.JSONNull["empty"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Object is null (through reference chain: net.sf.json.JSONObject["rows"]->net.sf.json.JSONArray[5]->net.sf.json.JSONObject["cell"] ->net.sf.json.JSONArray[4]->n
我這個 json jack 版本有點低,一直沒有進行更新。。。 緣由是這樣的: 有一個字段 date 類型, updateTime . 它是 空的, NULL , jackjson 這個 硬死 解析不出來,還報錯了。。。 若是我賦值以後,,,能夠看出來,,,它是把時間解析成一長串 list 的裏面有 day 啊等等屬性的。 而不是一個 時間字符串的。。。 坑爹。 而後我想設置 忽略 這個 時間字段,, 配置了 它的忽略註解後,,,仍是沒有起做用。。。app
換成 阿里的 json 使用了就能夠了。code