Phrogz / NeatJSON

Pretty-print your JSON in Ruby, JS, or Lua with more power than JSON.stringify or JSON.pretty_generate
http://phrogz.net/JS/NeatJSON
MIT License
108 stars 19 forks source link

Split options for comma spacing for arrays versus objects #3

Open Phrogz opened 9 years ago

Phrogz commented 9 years ago

The before_comma, after_comma, around_comma options apply to both single-line arrays and objects.

We cannot have around_array_comma or around_object_comma because these would conflict and cause (even more) confusing inheritance. But that's OK; spacing around commas is not usually symmetric.