mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 04:26:13 +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;
|
function TExtJSJSONDataFormatter.AddFieldToJSON(O : TJSONObject; AFieldName : String; F : TField): TJSONData;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
if F.IsNull then
|
||||||
|
Result:=O.Items[O.Add(AFieldName)]
|
||||||
|
else
|
||||||
Case F.DataType of
|
Case F.DataType of
|
||||||
ftSmallint,
|
ftSmallint,
|
||||||
ftInteger,
|
ftInteger,
|
||||||
|
Loading…
Reference in New Issue
Block a user