#1 Re: mORMot 2 » I have a problem getting my Json without the Result: » 2025-05-09 20:16:05

OK so this is how I have my service declared
t:=restServer.ServiceRegister(TPerfilService,[TypeInfo(IPerfilService)],sicShared);
t.ResultAsJsonObjectWithoutResult:=true;
t.SetWholeOptions([optResultAsJsonObjectWithoutResult]);

And the result did change from and JsonArray to a JsonObject but the result didnt get removed. I have tried moving other options around and changing the return type of the service but nothing worked. What am I doing wrong?

#2 mORMot 2 » I have a problem getting my Json without the Result: » 2025-05-09 18:52:41

Gabian04
Replies: 5

Hi I have a service-method server and I am trying to get the json without the Result: wrapper. The problem is that even with using the ResultAsJsonObjectWithoutResult:=true; its not working. Can anyone help me.

Board footer

Powered by FluxBB