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

Re: Problems with json strings


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.

On 4/10/25 05:30, brian wrote:
Thanks, will give it a try in the morning.

~~~~~ Brian

------------------------------------------------------------------------
*From:* user@xxxxxxxxxxxxxxxxxxxxxx <user@xxxxxxxxxxxxxxxxxxxxxx> on behalf of Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
*Sent:* Thursday, April 10, 2025 3:13:42 AM
*To:* user@xxxxxxxxxxxxxxxxxxxxxx <user@xxxxxxxxxxxxxxxxxxxxxx>
*Subject:* Re: Problems with json strings

Le 10/04/2025 à 12:07, BB a écrit :
> On 10/4/25 9:10 am, Brian G wrote:
>>
>> On 4/9/25 13:45, Benoît Minisini wrote:
>>> Le 09/04/2025 à 18:36, Brian G a écrit :
>>>> I have suddenly started getting this error when processing strings
>>>> from jason
>>>>
>>>> Type mismatch: wanted UseNull, got Boolean instead.
>>>>
>>>> Here is the json string
>>>>
>>>> {
>>>>
>>>> "url": "https://api.github.com/gists/2a452c807c7030eb64a2f1d60d31a830";,
>>>> ...
>>>
>>> Please can you send me a project that reproduces the bug? Because
>>> code and text inside an HTML-formatted mail is unreadable and often
>>> corrupted when copying/pasting.
>>>
>>> Thanks!
>>>
>> Attached is a simple project
>>
> I confirm this issue and as far as I can see there is no workaround.
>
> Something has happened to JSON.Decode()
>
> b
>
>

It's fixed in commit
https://gitlab.com/gambas/gambas/-/commit/a0514ebe58f82714c09d854292673d0934ceb9c2.

Regards,

--
Benoît Minisini.



--
~~~~ Brian

Attachment: OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Follow-Ups:
Re: Problems with json stringsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
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>