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

Re: JSON.Decode not load key-value pairs when value is an empty string in Gambas 3.21.0


Le 14/11/2025 à 08:57, Salva a écrit :
Attached is a file with a small project with a test JSON file inside.

The first image, Gambas 3.21.0, shows the JSON file, code and data in JSONCollection. In the second parameter the key-value pair "Value" has not been loaded because it is an empty string. The second image, Gambas 3.20.4, shows only the data in JSONCollection. In the second parameter the key-value pair "Value" has been loaded as null.

Regards.

JSON Gambas 3.21.0.png
JSON Gambas 3.20.4.png


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

The fix will backported to the next Gambas 3.21.1 version.

Regards,

--
Benoît Minisini.