#1 2015-07-17 07:44:46

cypriotcalm
Member
Registered: 2015-02-18
Posts: 122

InterfaceToJSON/JSONToInterface possible?

why is it not possible to serialize interfaces?

Offline

#2 2015-07-17 09:12:33

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: InterfaceToJSON/JSONToInterface possible?

Interface does not "contain" anything, so they can't be serialized as JSON.

Unless you define a parent interface with ToJson/FromJson methods...

In mORMot, we use interfaces for asynchronous callbacks.

Offline

#3 2015-07-17 09:48:20

cypriotcalm
Member
Registered: 2015-02-18
Posts: 122

Re: InterfaceToJSON/JSONToInterface possible?

Thank you!

Offline

Board footer

Powered by FluxBB