Smallest possible *.json file #22

Closed
Zegnat opened this Issue Sep 6, 2012 · 3 comments

Projects

None yet

2 participants

@Zegnat
Contributor
Zegnat commented Sep 6, 2012

In accordance with RFC 4627 the smallest JSON is an empty array or object.

  1. []
  2. {}

I’ll see if I can make this a pull request later on.

@mathiasbynens
Owner

Nice! Please do :)

@Zegnat
Contributor
Zegnat commented Sep 6, 2012

Should I make 2 separate files, or pick one of the two? An object might be more common, but I personally prefer the empty array

@mathiasbynens
Owner

Just pick one.

Feel free to add a .jsonp file as well — e.g. _([]).

@mathiasbynens mathiasbynens added a commit that referenced this issue Sep 8, 2012
@Zegnat @mathiasbynens Zegnat + Add JSON & JSON-P files
Smallest JSON according to RFC 4627.
Smallest JSON-P checked against the JSON-P validator.

Ref. #22 and #23.
eb3a44f
@Zegnat Zegnat closed this Sep 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment