You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
on Win32 or Win64 TJSONObjectHelper.ReadBoolValue works fine.
on Linux64 TJSONObjectHelper.ReadBoolValue always return false.
seem that TryGetValue(AName, LValue) can't get value.
To Reproduce
download sources (18, sep 2022)
run MARSTestProject.
test failed on Tests.core
procedure TMARSRecordToJSONTest.Variants;
.... line 330
Assert.AreEqual(True, LJSONObj.ReadBoolValue('Value4'));
Expected behavior
Scenario (please complete the following information):
OS: Win10, ubuntun20 on hyper-v
delphi 10.2
Additional context
to pass compiling. source modified (line 279).
class function TJSONObjectHelper.TValueToJSONValue(
const AValue: TValue): TJSONValue;
...
{ line 279 }
LTypeName := {$IFDEF LINUX} AValue.TypeInfo^.Name.toString {$ELSE} string(AValue.TypeInfo^.Name) {$ENDIF};
The text was updated successfully, but these errors were encountered:
Describe the bug
on Win32 or Win64 TJSONObjectHelper.ReadBoolValue works fine.
on Linux64 TJSONObjectHelper.ReadBoolValue always return false.
seem that TryGetValue(AName, LValue) can't get value.
To Reproduce
download sources (18, sep 2022)
run MARSTestProject.
test failed on Tests.core
procedure TMARSRecordToJSONTest.Variants;
.... line 330
Assert.AreEqual(True, LJSONObj.ReadBoolValue('Value4'));
Expected behavior
Scenario (please complete the following information):
Additional context
to pass compiling. source modified (line 279).
class function TJSONObjectHelper.TValueToJSONValue(
const AValue: TValue): TJSONValue;
...
{ line 279 }
LTypeName := {$IFDEF LINUX} AValue.TypeInfo^.Name.toString {$ELSE} string(AValue.TypeInfo^.Name) {$ENDIF};
The text was updated successfully, but these errors were encountered: