You are not logged in.
Pages: 1
In client-server services via interfaces I used RawJson in mORMot 1.18, and it's transmitted "as is", without serialization.
But in mORMot 2 transmission of RawJson now changed.
Is that expected?
For example,
i = interface
procedure m(s: RawJson);
end;
mORMot 1.18:
s := ' ["x"] '
i.m(s) -> ' ["x"] '
mORMot 2:
s := ' ["x"] '
i.m(s) -> ' "[\"x\"]" '
Offline
I am not able to reproduce.
When I run https://github.com/synopse/mORMot2/commit/87c0f367
and debug into the transmitted JSON, I have the expected unescaped JSON.
Offline
I am not able to reproduce.
My bad, sorry.
The real case is in MVC Web application (mormot.rest.mvc.pas).
i = interface(IMvcApplication)
procedure m(s: RawJson);
end;
Query: http://localhost/root/m?s=["x"]
And in mORMot 1.18: ["x"]
In mORMot 2: "[\"x\"]"
May be using RawJson parameter in MVC Web App is not a good idea.
Offline
RawJson was not properly supported on the URI.
Please try https://github.com/synopse/mORMot2/commit/b22dc378
Offline
Great, everything works now.
Thanks!
Offline
Pages: 1