[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
JSON.Decode not load key-value pairs when value is an empty string in Gambas 3.21.0
[Thread Prev] | [Thread Next]
- Subject: JSON.Decode not load key-value pairs when value is an empty string in Gambas 3.21.0
- From: Salva <harpomix@xxxxxxxxx>
- Date: Wed, 5 Nov 2025 12:11:06 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
I'm using the function to load JSON files into a JSONCollection, but values with an empty string disappear. The same thing happens with JSON.FromString. The opposite functions, JSON.Encode and JSON.ToString, correctly generate the JSON file, although they replace the empty string with a null value. This didn't happen in previous versions. Is this a bug or a change in functionality? The component has been rewritten for this latest version. Regards.
| Re: JSON.Decode not load key-value pairs when value is an empty string in Gambas 3.21.0 | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: JSON.Decode not load key-value pairs when value is an empty string in Gambas 3.21.0 | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |