Hi Nick,
Perhaps I should clarify ;-) imagine I have a 3x3 array, Object[][] of strings and int's with one null object reference in the middle retrieved from a datastore in Java, such that:
{ "1", "2", 3 },
{ "4", <Null object>, "6" },
{ 7 ,8 , 9 }
At the moment I get this from DropWizard when serialized
[[ "1", "2", 3],
[[ "4", null , "6"], <-- note the 'null'
[[ 7, 8, 9]]
ECMA Javascript will deserialize that 'null' as a string object with the value "null", which not what was intended - since there was not a string with value "null" in the datastore
Instead I would like to serialize to:
[[ "1", "2", 3],
[[ "4", , "6"], <-- note the empty string in the middle (when I say empty string I mean literally that, not two double quotes "" ;-)
[[ 7, 8, 9]]
Where the JavaScript object in the array will be 'undefined', which is the JavaScript equivalent to a Java null reference which was there on the server side.
Hope that helps!
Ian