Allow empty keys as defined in the JSON spec.#1
Allow empty keys as defined in the JSON spec.#1umulmrum wants to merge 1 commit intowebdevcraft:masterfrom
Conversation
|
Hi @umulmrum , Thanks for contributing and hope you found this lib useful for you.
To ensure we are talking on same side: are we talking about object's key as about name of name/value pair? |
|
Hm I found this one in ECMA-404:
So it allows following JSON:
Did you you mean this case @umulmrum ? |
Hi,
the lib currenty disallows empty JSON keys although they are allowed by the JSON spec. I found several other libs with similar issues, where fixes have been suggested and pulled, so I'm quite confident it is correct to allow empty keys.
My use case worked with this fix although I'm not sure if there are other implications (tests do not cover this).