* Null values should be sent as NULL in json

git-svn-id: trunk@15719 -
This commit is contained in:
michael 2010-08-06 09:04:40 +00:00
parent f39e793448
commit 67822209c4

View File

@ -80,6 +80,9 @@ end;
function TExtJSJSONDataFormatter.AddFieldToJSON(O : TJSONObject; AFieldName : String; F : TField): TJSONData;
begin
if F.IsNull then
Result:=O.Items[O.Add(AFieldName)]
else
Case F.DataType of
ftSmallint,
ftInteger,