mathiasbynens / small

Smallest possible syntactically valid files of different types
https://mathiasbynens.be/notes/minimal-html
1.93k stars 184 forks source link

Smallest possible *.json file #22

Closed Zegnat closed 12 years ago

Zegnat commented 12 years ago

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 commented 12 years ago

Nice! Please do :)

Zegnat commented 12 years ago

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 commented 12 years ago

Just pick one.

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