[Kea-users] [Kea 1.2] configuration - cannot end the last element of a list with a comma

Chaigneau, Nicolas nicolas.chaigneau at capgemini.com
Tue May 9 08:53:18 UTC 2017


Hello Francis,


Thanks for the feedback.

I understand that the JSON standard does not allow for trailing commas.

There are other things it doesn't allow: comments. But I think we can agree they are very convenient :)

Trailing commas are convenient. I think they should be allowed, if there are no drawbacks in doing so.



Regards,
Nicolas.


-----Message d'origine-----
De : Francis Dupont [mailto:fdupont at isc.org] 
Envoyé : mardi 9 mai 2017 10:15
À : Chaigneau, Nicolas
Cc : kea-users at lists.isc.org
Objet : Re: [Kea-users] [Kea 1.2] configuration - cannot end the last element of a list with a comma

"Chaigneau, Nicolas" writes:
> I've noticed that Kea configuration parser is stricter now in Kea 1.2 
> (as com pared to 1.1.0).
> 
> Now the last element of a list cannot be terminated with a comma.
> Is this on purpose ?

=> yes, according to the JSON standard (aka ECMA 404) it is forbidden to put a comma ',' before a closing bracket ']' (cf Figure 3 -- array at page 3 of the ECMA pdf).

Thanks

Francis Dupont <fdupont at isc.org>

PS: as it is a bug in the 1.1.0 parser which needs to be fixed (in 1.3, not backward) can you send this incorrect piece of config so I can open a ticket with it?
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.




More information about the Kea-users mailing list