mathiasbynens/small — pull request #23 by Zegnat (2012-09-08 09:23:59+00:00)
Title: Adding smallest possible JSON(-P).

This adds two files as discussed in issue #22:

1. Smallest JSON syntax according to [RFC 4627](https://www.rfc-editor.org/rfc/rfc4627.txt 'The application/json Media Type for JavaScript Object Notation (JSON)'), passes two separate [JSON](http://www.jslint.com/ 'JSLint') [validators](http://jsonlint.com/ 'JSONLint'). I choose to go with an empty ``array`` rather than an empty ``object``.

2. Smallest JSON-P according to [the semi-official website](http://json-p.org/ 'JSON-P'):

> 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](http://json-p.org/validator.html 'JSON-P: Validator').