Problem with null value not appearing in JSON
Problem with null value not appearing in JSON
I am using AJAX from a REST service served by Jersey.
The problem I have is that the value is null in Java so it is not getting serialized into the JSON. This is giving an error message when the data loads but the datatable is shown correctly. I am using JAXB generated java classes.
I know the AJAX and table are working fine because when I dont have null values everything works fine.
The problem I have is that the value is null in Java so it is not getting serialized into the JSON. This is giving an error message when the data loads but the datatable is shown correctly. I am using JAXB generated java classes.
I know the AJAX and table are working fine because when I dont have null values everything works fine.
This discussion has been closed.
Replies
The table is generated with this code
[code] $('#executiondata').dataTable({
"bProcessing": true,
"bDestroy": true,
"sAjaxSource": "/freewheel/api/executions/json"
"aoColumns": [
{"mData": "@corrolationId"}
{"mData": "@uid"}
{"mData": "@jobname"}
{"mData": "@jobtype"}
{"mData": "@startTime"}
{"mData": "@endTime"}
{"mData": "status"}
]
"aaSorting": [
[4, "desc"]
[5, "desc"]
],
"aoColumnDefs": [{ "bSearchable": false, "bVisible": false, "sDefaultContent": "", "aTargets": [0, 1]}],
"bJQueryUI": true
})
[/code]