[Gambas-user] JSON.Decode error in gb.util.web??
Bruce
adamnt42 at gmail.com
Mon Nov 9 22:05:16 CET 2020
On 10/11/20 5:58 am, T Lee Davidson wrote:
> On 11/9/20 12:56 PM, Martin wrote:
>> As you will see there are many key values empty ("": [2, 0, 0, 0],).
>> Well here are two point of view, the firt is the file .json is wrong
>> and the solution is delete the problematic lines or the second is
>> JSON.Reader no skip empty keys.
>>
>> ¿JSON objets support empty keys?
>>
>> ¿JSON objets support repeated keys?
>
> JSONCollection supports null values.
>
> If a key is duplicated in the same node of a JSON string, it is invalid
> ASFAIK. When a JSON string is converted to a Collection, if there are
> duplicate keys, the values will be overwritten.
>
>
and I would have thought null kays are invalid as well?
I think the question should be wehther and how the gb.JSON decoder
handles such occurrences.
b
More information about the User
mailing list