kof/node-cjson — Issue #4: cjson.decomment breaks when a comment looks like a key-value pair
Author: papandreou
Created: 2011-11-14 10:03:34+00:00
State: open

Example:

console.warn(require('cjson').decomment('{\n // "foo": 1\n}\n'));

Expected output:

{

}

Actual output:

{
"foo
}

It also seems to affect `/* ... */`-style comments.