Closed Phrogz closed 8 years ago
var obj = '{ "abcdefghij":[{ "abcdefghijklmnop":{} }] }'; var json = neatJSON(obj, {wrap:1, short:true, aroundColonN:1} ); // TypeError: Cannot read property '0' of undefined
Removing characters from either property name fixes the problem, as does removing the aroundColonN option. (?!)
aroundColonN
Simpler repro:
var obj = {"foo":{}}; var json = neatJSON(obj, {wrap:1, short:true} ); // TypeError: Cannot read property '0' of undefined
Fixed in v0.6.1
Removing characters from either property name fixes the problem, as does removing the
aroundColonN
option. (?!)