[Gambas-user] JSON.Decode error in gb.util.web??[SOLVED]
mbelmonte at belmotek.net
Mon Nov 9 23:58:18 CET 2020
Yes, the obstacle is the empty keys in json file.
So I use TRUE option as parameter, then works. Rest some work to do in
json file maker.
Tanks for the answers.
On 9/11/20 22:05, Bruce wrote:
> 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.
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
More information about the User