A
A
artem782017-01-18 21:01:32
Delphi
artem78, 2017-01-18 21:01:32

Why doesn't SuperObject work in Delphi 2010?

I connected the SuperObject module to the project to parse JSON.

procedure TForm1.Button1Click(Sender: TObject);
var
  Json: ISuperObject;
begin
  Json := SO(Memo1.Text);
end;

When compiling, this is the error:
[DCC Error] Generics.Collections.pas(1679): E2250 There is no overloaded version of 'Create' that can be called with these arguments
[DCC Fatal Error] Generics.Defaults.pas(111): F2063 Could not compile used unit 'Generics.Collections'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
instigator21, 2017-01-28
@instigator21

It says right there on the page.

var
  obj: ISuperObject;
begin
  obj := SO('{"foo": true}');
  obj := TSuperObject.ParseString('{"foo": true}');
  obj := TSuperObject.ParseStream(stream);
  obj := TSuperObject.ParseFile(FileName);
end;

Well, further debug, what's what

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question