v0.4.23 - Calling builder.buildObject(rootObj) with an array of length 1 wrongly interprets the index 0 as root element name, resulting in a 'Invalid character in name' exception.
The following test in builder.coffee line 36 should check for array argument first:
if ( Object.keys(rootObj).length is 1 ) and ( @options.rootName == defaults['0.2'].rootName )...
v0.4.23 - Calling
builder.buildObject(rootObj)
with an array of length 1 wrongly interprets the index 0 as root element name, resulting in a 'Invalid character in name' exception. The following test in builder.coffee line 36 should check for array argument first:if ( Object.keys(rootObj).length is 1 ) and ( @options.rootName == defaults['0.2'].rootName )...