[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with json strings


Le 10/04/2025 à 22:06, Benoît Minisini a écrit :
Le 10/04/2025 à 19:34, Brian G a écrit :
Unfortunately now there is a bug in that

For Each v As Collection In jsondb["files"]       ''' trial change to code from  JsonCollection to collection

jsondb is no longer a number of jsoncollections but has changed to collections, makes a lot of other apps crash too.


Yes. Does it works if you just declare a class JsonCollection that inherits Collection? Because JsonCollection should be useless now.


Mmm... I think I told rubbish. Maybe I have to re-implement JsonCollection too for backward-compatibility reason.

But I still think that it is useless. Json.FromString() has a flag that allows to use 'Json.Null' and 'Json.Undefined' to translate the corresponding JSON constants, or to replace them by NULL.

It should be enough for all possible use cases, shouldn't it?

--
Benoît Minisini.


References:
Problems with json stringsBrian G <brian@xxxxxxxxxxxxxxxx>
Re: Problems with json stringsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Problems with json stringsBrian G <brian@xxxxxxxxxxxxxxxx>
Re: Problems with json stringsBB <adamnt42@xxxxxxxxx>
Re: Problems with json stringsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Problems with json stringsbrian <brian@xxxxxxxxxxxxxxxx>
Re: Problems with json stringsBrian G <brian@xxxxxxxxxxxxxxxx>
Re: Problems with json stringsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>