#1 2020-04-30 12:00:09

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

VariantSaveJSON

In my projects I used very often the VariantSaveJSON function. When I moved to mormot 2.0 I see that you removed that function. Can you restore it?

function VariantSaveJSON(const Value: variant; Escape: TTextWriterKind=twJSONEscape): RawUTF8; overload;  -> missing
procedure VariantSaveJSON(const Value: variant; Escape: TTextWriterKind;var result: RawUTF8); overload;


Edit: VariantToDateTime also has been removed

Last edited by radexpol (2020-04-30 13:52:53)

Offline

#2 2020-04-30 17:39:39

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

Re: VariantSaveJSON

mORMot 2 is a work in progress...
Those functions will appear at some point....
Don't use mORMot2: it is pretty unstable/bugged/unusable in its current state.

Offline

#3 2020-05-03 12:57:01

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Re: VariantSaveJSON

Hehe, ok.
I convinced my team that we must definitely upgrade to the mORMot 2.0, so I replaced a tons of uses units with the 2.0 ones. Have to revert all those changes, I hope they won't kill me now smile

Last edited by radexpol (2020-05-03 13:00:17)

Offline

#4 2020-05-04 06:53:06

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

Re: VariantSaveJSON

Sorry for that.

I added an explicit comment to avoid such confusion...
See https://github.com/synopse/mORMot

Offline

Board footer

Powered by FluxBB