|
@@ -116,11 +116,11 @@ Var
|
|
J : TJSONData;
|
|
J : TJSONData;
|
|
|
|
|
|
begin
|
|
begin
|
|
- P:=TJSONParser.Create('Null');
|
|
|
|
|
|
+ P:=TJSONParser.Create('null');
|
|
Try
|
|
Try
|
|
J:=P.Parse;
|
|
J:=P.Parse;
|
|
If (J=Nil) then
|
|
If (J=Nil) then
|
|
- Fail('Parse of Null fails');
|
|
|
|
|
|
+ Fail('Parse of null fails');
|
|
TestJSONType(J,jtNull);
|
|
TestJSONType(J,jtNull);
|
|
Finally
|
|
Finally
|
|
FreeAndNil(J);
|
|
FreeAndNil(J);
|
|
@@ -200,7 +200,7 @@ Var
|
|
|
|
|
|
begin
|
|
begin
|
|
DoTestArray('[]',0);
|
|
DoTestArray('[]',0);
|
|
- DoTestArray('[Null]',1);
|
|
|
|
|
|
+ DoTestArray('[null]',1);
|
|
DoTestArray('[true]',1);
|
|
DoTestArray('[true]',1);
|
|
DoTestArray('[false]',1);
|
|
DoTestArray('[false]',1);
|
|
DoTestArray('[1]',1);
|
|
DoTestArray('[1]',1);
|
|
@@ -218,9 +218,9 @@ begin
|
|
DoTestArray('["A string"]',1);
|
|
DoTestArray('["A string"]',1);
|
|
DoTestArray('["A string", "Another string"]',2);
|
|
DoTestArray('["A string", "Another string"]',2);
|
|
DoTestArray('["A string", "Another string", "Yet another string"]',3);
|
|
DoTestArray('["A string", "Another string", "Yet another string"]',3);
|
|
- DoTestArray('[Null, false]',2);
|
|
|
|
|
|
+ DoTestArray('[null, false]',2);
|
|
DoTestArray('[true, false]',2);
|
|
DoTestArray('[true, false]',2);
|
|
- DoTestArray('[Null, 1]',2);
|
|
|
|
|
|
+ DoTestArray('[null, 1]',2);
|
|
DoTestArray('[1, "A string"]',2);
|
|
DoTestArray('[1, "A string"]',2);
|
|
DoTestArray('[1, []]',2);
|
|
DoTestArray('[1, []]',2);
|
|
DoTestArray('[1, [1, 2]]',2);
|
|
DoTestArray('[1, [1, 2]]',2);
|