Hi All,
I am just wondering why the 2 cases below are different.
Case #1
output
Case #2:
output
I would like to see Case #1 output identical to Case#2
Thanks,
iCAB
I am just wondering why the 2 cases below are different.
Case #1
B4X:
Dim ClosedByID As String = Null
Dim ShiftEnd As String = Null
Dim Map1 As Map = CreateMap( "ClosedByToken": ClosedByID, _
"ShiftEnd": ShiftEnd )
Dim JSONGenerator As JSONGenerator
JSONGenerator.Initialize(Map1)
Log( JSONGenerator.ToString )
output
B4X:
{"ClosedByToken":"null","ShiftEnd":"null"}
Case #2:
B4X:
Dim Map2 As Map = CreateMap( "ClosedByToken": Null, _
"ShiftEnd": Null )
Dim JSONGenerator2 As JSONGenerator
JSONGenerator2.Initialize(Map2)
Log( JSONGenerator2.ToString )
B4X:
{"ClosedByToken":null,"ShiftEnd":null}
I would like to see Case #1 output identical to Case#2
Thanks,
iCAB