Phrogz / NeatJSON

Pretty-print your JSON in Ruby, JS, or Lua with more power than JSON.stringify or JSON.pretty_generate

Home Page:http://phrogz.net/JS/NeatJSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`trimTrailingZeros` with `short` removes opening bracket for wrapped arrays

Phrogz opened this issue · comments

a = [1,2]
neatJSON(a,{ wrap:true, indent:"", decimals:3, trimTrailingZeros:true })
// [
// 1,
// 2
// ]

neatJSON(a,{ wrap:true, short:true, decimals:3, trimTrailingZeros:true });
// 1,
// 2]

Expected output:

[1,
 2]