JSON Duplicate Keys

Alexandre Morgaut Alexandre.Morgaut at 4d.com
Fri Jun 7 02:04:58 PDT 2013


On 7 juin 2013, at 10:58, Alexandre Morgaut wrote:
>
> 3) Another approach could be to let the parse() and stringify() methods accept an additional errorCallback parameter
>
> It could be nice but it would force the developer to set values for the other optional parameters first even if he doesn't need them
>

Well, of course, the errorCallback might be set via something like JSON.onerror but a specific callback may easily overwrite a previously defined global one and integrating the whole W3C EventTarget interface in ECMAScript might not be easily acceptable




Alexandre Morgaut
Wakanda Community Manager

4D SAS
60, rue d'Alsace
92110 Clichy
France

Standard : +33 1 40 87 92 00
Email :    Alexandre.Morgaut at 4d.com
Web :      www.4D.com




More information about the es-discuss mailing list