New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow using an object or an array as a name of an object member. #143

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
1 participant
@yasuoka

yasuoka commented Oct 13, 2018

In section "4 Object" of RFC 7159, a name of a object member is a string. Even in current implementation, using a primitive is disallowed already in JSMN_STRICT. I'd suggest disallowing an object or an array as well.

@yasuoka yasuoka changed the title from Disallow using an object or an array as a key. to Disallow using an object or an array as a name. Oct 13, 2018

@yasuoka yasuoka changed the title from Disallow using an object or an array as a name. to Disallow using an object or an array as a name of an object member. Oct 13, 2018

@yasuoka yasuoka force-pushed the yasuoka:object_key branch from 3bf84a6 to 07a62d4 Oct 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment