Adding smallest possible JSON(-P). #23

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

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 & JSON-P file.
Smallest JSON according to RFC 4627.
Smallest JSON-P checked against the JSON-P validator.

mathiasbynens added a commit that referenced this pull request Sep 8, 2012

Add JSON & JSON-P files
Smallest JSON according to RFC 4627.
Smallest JSON-P checked against the JSON-P validator.

Ref. #22 and #23.
Owner

mathiasbynens commented Sep 8, 2012

Merged, thanks!

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