|
@@ -238,6 +238,7 @@ type
|
|
procedure TestCreateBoolean;
|
|
procedure TestCreateBoolean;
|
|
procedure TestCreateBooleanUnquoted;
|
|
procedure TestCreateBooleanUnquoted;
|
|
procedure TestCreateObject;
|
|
procedure TestCreateObject;
|
|
|
|
+ procedure TestCreateJSONUnicodeString;
|
|
procedure TestCreateJSONString;
|
|
procedure TestCreateJSONString;
|
|
procedure TestCreateJSONStringUnquoted;
|
|
procedure TestCreateJSONStringUnquoted;
|
|
procedure TestCreateJSONObject;
|
|
procedure TestCreateJSONObject;
|
|
@@ -3926,6 +3927,25 @@ begin
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+procedure TTestObject.TestCreateJSONUnicodeString;
|
|
|
|
+Const
|
|
|
|
+ A = 'A';
|
|
|
|
+ S : Unicodestring = 'A string';
|
|
|
|
+
|
|
|
|
+Var
|
|
|
|
+ O : TJSONObject;
|
|
|
|
+
|
|
|
|
+begin
|
|
|
|
+ O:=TJSONObject.Create([A,S]);
|
|
|
|
+ try
|
|
|
|
+ TestItemCount(O,1);
|
|
|
|
+ TestJSONType(O[A],jtString);
|
|
|
|
+ TestJSON(O,'{ "A" : "'+S+'" }');
|
|
|
|
+ finally
|
|
|
|
+ FreeAndNil(O);
|
|
|
|
+ end;
|
|
|
|
+end;
|
|
|
|
+
|
|
procedure TTestObject.TestCreateNilPointer;
|
|
procedure TTestObject.TestCreateNilPointer;
|
|
|
|
|
|
Const
|
|
Const
|