mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 01:09:31 +02:00
* Null values should be sent as NULL in json
git-svn-id: trunk@15719 -
This commit is contained in:
parent
f39e793448
commit
67822209c4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user