Problems encountered: The fastJson utility class will have List< installed; HashMap> When converted to a JSONArray, the key with null value in the HashMap is also lost. Code:
JSONArray dataArray=JSONArray.parseArray(JSON.toJSONString(datalist))
Solutions:
JSONArray dataArray=JSONArray.parseArray(JSON.toJSONString(datalist,SerializerFeature.WriteMapNullValue))
div>