Skip to content
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

Adding smallest possible JSON(-P). #23

Closed
wants to merge 1 commit into from
Closed

Adding smallest possible JSON(-P). #23

wants to merge 1 commit into from

Conversation

Zegnat
Copy link
Contributor

@Zegnat Zegnat commented Sep 8, 2012

This adds two files as discussed in issue #22:

  1. Smallest JSON syntax according to RFC 4627, passes two separate JSON validators. I choose to go with an empty array rather than an empty object.

  2. Smallest JSON-P according to the semi-official website:

    The intention is that only a single expression (function reference, or object property function reference) can be used for the function ("padding") reference of the JSON-P response, and must be immediately followed by a single ( ) enclosing pair, inside of which must be a strictly valid and parseable JSON object. The function call may optionally be followed by one ; semi-colon.

    It also passes their validation.

Smallest JSON according to RFC 4627.
Smallest JSON-P checked against the JSON-P validator.
mathiasbynens pushed a commit that referenced this pull request Sep 8, 2012
Smallest JSON according to RFC 4627.
Smallest JSON-P checked against the JSON-P validator.

Ref. #22 and #23.
@mathiasbynens
Copy link
Owner

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants