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

Smallest possible *.json file #22

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

Comments

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

This comment has been minimized.

Show comment
Hide comment
@mathiasbynens

mathiasbynens Sep 6, 2012

Owner

Nice! Please do :)

Owner

mathiasbynens commented Sep 6, 2012

Nice! Please do :)

@Zegnat

This comment has been minimized.

Show comment
Hide comment
@Zegnat

Zegnat Sep 6, 2012

Contributor

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

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

This comment has been minimized.

Show comment
Hide comment
@mathiasbynens

mathiasbynens Sep 6, 2012

Owner

Just pick one.

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

Owner

mathiasbynens commented Sep 6, 2012

Just pick one.

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

mathiasbynens added a commit that referenced this issue 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.

@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