andrea-magni / MARS

MARS-Curiosity Delphi REST Library
Mozilla Public License 2.0
362 stars 113 forks source link

Compilation error when {$define MARS_JSON_LEGACY} enabled in MARS.inc #116

Closed asryzhkov closed 2 years ago

asryzhkov commented 2 years ago

When compiling a project with an enabled MARS_JSON_LEGACY switch, the following errors occur:

[dcc32 Error] MARS.Core.JSON.pas(661): E2250 There is no overloaded version of 'JsonToObject' that can be called with these arguments [dcc32 Error] MARS.Core.JSON.pas(683): E2250 There is no overloaded version of 'TJson.JsonToObject' that can be called with these arguments [dcc32 Error] MARS.Core.JSON.pas(746): E2010 Incompatible types: 'TJsonOptions' and 'TMARSJSONSerializationOptions'

asryzhkov commented 2 years ago

Thanks!